I have made progress on the menu problem.
Based on your suggestions, I created a link from the the wine menu folder of the windows user to a shared system folder that I named Wine_global. I chose this folder to try and make this work for gnome and kde.
Code:
sudo ln -s /home/windows/.local/share/applications/wine/ /etc/X11/applnk/Wine_global
Now, when wine installs programs to the menu, they propagate to all users.
I installed PokerStars.exe as an example, since it was a platinum app on Wine HQ.
Of course, the default wine menu install doesn't account for running the program as the windows user so I have to edit the PokerStars.desktop file in the /etc/X11/applnk/Wine_global/Programs/PokerStars directory as follows.
Original:
Code:
[Desktop Entry]
Name=PokerStars
Exec=env WINEPREFIX="/home/windows/.wine" wine "C:\\Program Files\\PokerStars\\PokerStarsUpdate.exe"
Type=Application
StartupWMClass=Wine
Path=/home/windows/.wine/dosdevices/c:/Program Files/PokerStars
Icon=/home/windows/.local/share/icons/6604_pokerstarsupdate.0.xpm
Fixed:
Code:
[Desktop Entry]
Name=PokerStars
Exec=env WINEPREFIX="/home/windows/.wine" sudo -u windows -H wine "C:\\Program Files\\PokerStars\\PokerStarsUpdate.exe"
Type=Application
StartupWMClass=Wine
Path=/home/windows/.wine/dosdevices/c:/Program Files/PokerStars
Icon=/home/windows/.local/share/icons/6604_pokerstarsupdate.0.xpm
Basically just adding "sudo -u windows -H" in front of "wine" in the Exec line.
Now, all the users have a Wine_global menu (or whatever you called it), that can run the programs as the windows user. This keeps the shared wine menu distinct from the users local wine if they have it installed.
I would like to have a gui like alacarte to edit the menu, but even when I tried sudo -u windows -H alacarte, the changes didn't propagate back to the /etc/X11/applnk.
Bookmarks