Programs disappeared from Ubuntu Main Menu

Questions about Wine on Linux
Locked
kleinempfaenger
Level 1
Level 1
Posts: 9
Joined: Thu Sep 06, 2012 12:43 pm

Programs disappeared from Ubuntu Main Menu

Post by kleinempfaenger »

Hi,

I installed a program under a new wineprefix on Ubuntu Precise via Q4Wine. Now the previously installed programs disappeared from the main menu.
Is it posible to restore those shortcuts, or scan all wineprefix drive_c: for installed programs?

Thanks, kl
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: Programs disappeared from Ubuntu Main Menu

Post by DanKegel »

Not quite sure what you're asking. Can you give steps to repeat the problem from scratch?
kleinempfaenger
Level 1
Level 1
Posts: 9
Joined: Thu Sep 06, 2012 12:43 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by kleinempfaenger »

I had some programs installed. Installed a program with Q4Wine in a new wineprefix. Wine Menu in Ubuntu Main Menu was overwritten, only new program is listed. Older programs are still installed and can be found on drive_c:, but not in Main Menu.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by dimesio »

Q4Wine is not supported here. If it messed up your menus, ask for help from its support channels.
kleinempfaenger
Level 1
Level 1
Posts: 9
Joined: Thu Sep 06, 2012 12:43 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by kleinempfaenger »

Sorry dimesio, my question is how to restore main menu entries. Maybe it's more an Ubuntu question, than a Wine question. Everybody who wants to use Q4Wine should be warned about this problem.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by dimesio »

You can try this: http://wiki.winehq.org/FAQ#head-34c8b5d ... a1aa8fea48

You really should report this to the Q4Wine developers.
kleinempfaenger
Level 1
Level 1
Posts: 9
Joined: Thu Sep 06, 2012 12:43 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by kleinempfaenger »

That's a good hint, although I haven't found the correct lines yet.
My menu information, by the way, was not in
~/.config/menus/applications.menu
but in
/etc/xfg/menus

Thanks, kl
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by Simon of Aragon »

Personally I don't care if it is or is not precisely about Wine. I tried the Q4Wine and Winetricks (last month) didn't care for either one, but I understand what you are saying. I understand the moderator doesn't want to turn the forum into "everything that Wine touches or touches Wine" but I think I need to know you got assistance when needed.

Q: Do you want to add the shortcut links back to the main menu or uninstall the old programs?

I use Kubuntu so these steps may vary;

To add the shortcut link back, right click the launcher and select menu editor. Following the menu tree you can find which branch they should be located on. Then add the item back and use browse out on the right to find the link inside the ~/.wine folder.

To uninstall the program simple navigate the fake c:\ drive inside the ~/.wine folder and delete it's folder. Note: this might not be the best solution since even windows uninstall.exe of most programs leave behind ruminates of the program. If you feel the uninstall might do a better job just run it under wine. Some programs don't include an uninstall.exe and in those cases you could check the regedit to get a clue where everything got placed. Back when I used Windows, I would run a search of all the files based on install date.
kleinempfaenger
Level 1
Level 1
Posts: 9
Joined: Thu Sep 06, 2012 12:43 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by kleinempfaenger »

Thanks Simon. I finally made the shortcuts in the main menu by linking the .exe-files. So its easier for my children to find their beloved games. The links are without the icons though, but work.

Greetings, kl
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Programs disappeared from Ubuntu Main Menu

Post by Simon of Aragon »

To get the icons, the simple method is a google image search and download for any small png that references the game. You can actually find the better looking ones this way.

But I use terminal window inside the .exe folder;

wrestool -x -t 14 "game.exe" > "game.ico"

This extracts the icon from the exe then you can use Gimp to open it and save as png.

Tell the kids to enjoy!
Locked