Menus for Wine

Virtual machines, emulation, etc.
Post Reply
Message
Author
User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Menus for Wine

#1 Post by mikeslr »

Hi All,

Starting with Wine 1.5.18, Version2013 moved the menu entries into a separate dotpet named wine_extras-v2.pet. It's currently available from here: http://lilfile.com/j9oqqs,

Alternative to having listing for some programs which come with wine scattered throughout your Menu are:

peebee's "just one entry under Utility which leads to a menu of all the wine programs" which is available from here: http://www.murga-linux.com/puppy/viewto ... 535#640535

and Argolances' WinUtil 1.4, available on the French Forum, http://www.murga-linux.com/puppy/viewtopic.php?t=102332

I have not, as yet, tried either alternative since currently all my Pups use portable-wine which provides menu-listing for those wine programs I am likely to use.

Previous to using portable-wine, I "de-cluttered" the Menu by browsing to /usr/share/applications, opening the desktop files of unwanted applications and adding a "z" to the beginning of the word specified in the Category Argument. Since there is no recognized --for example-- zUtility Category, the application would no longer appear on the Menu. If, later, I changed my mind, returning the application to the Menu was just a matter of removing the "z" and restarting X.

Version2013's post, http://www.murga-linux.com/puppy/viewto ... 128#725128 thoughtfully provided a link to WineHQ's listing of Commands which call programs included within Wine. https://web.archive.org/web/20151224045 ... ofCommands. Those programs can be initiated by opening a terminal and typing, Code:

wine wineprogram arg1 arg2 ...

For example, "wine winefile" will open wine's filemanager.

With this information, it is easy to create menu entries for any of wine's builtin programs that you consider useful enough to be on the Menu. The following is the text of Wine-Control.desktop as it appears in /usr/share/applications

[Desktop Entry]
Encoding=UTF-8
Name=Wine Control Panel
Icon=/usr/share/pixmaps/winecfg.png
Comment=Wine Control Panel
Exec=wine control
Terminal=false
Type=Application
Categories=Utility
GenericName=Wine Control Panel

To create a menu-entry for a different builtin wine program, open your text editor and copy the above into it, then change the relevant arguments and save it to /usr/share/applications with a different name. For example, if I wanted a menu entry for wine's filemanager, I would make the below bolded
changes and save it as "wine-filemanager" --without the quotes:

[Desktop Entry]
Encoding=UTF-8
Name=Wine Filemanager
Icon=/usr/share/pixmaps/winecfg.png
Comment=Wine Filemanager
Exec=wine winefile
Terminal=false
Type=Application
Categories=X-Filesystem-filemanager
GenericName=Wine Filemanager

Make sure you have an appropriate icon in /usr/share/pixmaps. :)

Above, I've bolded references to wine's included/builtin programs. These are NOT the programs you install. To create menu listings for those progams, see http://murga-linux.com/puppy/viewtopic.php?p=814296

mikesLr
Last edited by mikeslr on Thu 10 Mar 2016, 00:29, edited 2 times in total.

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#2 Post by step »

Nice summary, thank you! (bookmarked)
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Winetricks -- Menu listing

#3 Post by mikeslr »

Hi All,

I recently had occasion to work with an installed wine rather than portable. Some versions of wine, both portable and installed as a pet, include winetricks. And some don't.

To start winetricks from a portable-wine which include it, you normally have to open a terminal and type, code:

wine.sh winetricks.

Doing the equivalent in an installed wine I thought the code would be "wine winetricks" --without the quotes. But that returned an error message. I'm not sure I know what inspired me to enter the code which worked, which is simply:

winetricks

At any rate, keep that distinction in mind if you want a menu entry for winetricks.

mikesLr

Post Reply