Add a program to Wine Programs menu

Asked by dlfuller

I manually added an .exe program in the Program Files directory in Wine. It appears in the Applications menu under Wine > Browse C: Drive and it launches if double clicked.

I simply want to add the program's name to Wine > Programs for easier access consistent with other Windows programs. Ones that appear there but had their menu entries installed by installers.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
dlfuller
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

if you add items in:

 ~/.config/menus/applications-merged

They will appear there. Look at the other files for formatting etc and you can add what you wish.

Alternatively, alacarte may be able to handle it.

Revision history for this message
Christian Dannie Storgaard (cybolic) said :
#2

...or you can simply add (or change the existing category line):
Category=Wine;

to any desktop file (in ~/.local/share/applications/) and it will show up in the Wine menu, though not in any of the sub-menus.

Revision history for this message
dlfuller (dlfuller) said :
#3

Thanks for the suggestions.

@Christian: I would like to get the .exe program named under Wine "Programs" along with other programs that have their names placed there by installers. Like Notepad which is apparently installed there by default by Wine.

@actionparsnip: Mine is a clean installation. My ~/.config/menus/applications-merged directory is empty. But I did finally figure out how to add a new sub directory and item under Wine by using System > Preferences > Main Menu or alacarte.

My .exe program as listed in the Wine > Browse C: Drive menu does launch when double clicked. A desktop link also launches it when clicked.

Now that I have the menu working how do I launch the .exe program with the Wine Windows Program Loader? I copied the full path to the .exe program into the Main Menu Launcher Properties, but I keep getting a "Could not launch" error when trying to launch the .exe program from the menu.

HOLD IT! I was going to post this reply looking for more suggestions and needed to look at that "Could not launch" dialog again. The full path included "Program Files" as Wine creates it in its "dosdevices/c:" directory. What little I know about Linux includes an awareness of the hazards of spaces in directory or file names. I added single quotes around 'Program Files' to the full path that had been copied and pasted. And, the .exe program launched.

Menu item added the way I wanted it by using Main Menu (alacarte) and it launches the .exe program.