Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652176 - app-emulation/wine-any shortcuts point to new flavor+version rather than /usr/bin/wine
Summary: app-emulation/wine-any shortcuts point to new flavor+version rather than /usr...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-01 22:54 UTC by Mike Lothian
Modified: 2019-06-20 08:10 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2018-04-01 22:54:25 UTC
One that particular version has been removed the shortcut stops working

The shortcut doesn't respect selecting the wine flavour with eselect wine
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-02 07:01:00 UTC
I suppose you mean the same problem as I see -- .desktop files containing:

Exec=env WINEPREFIX="..." /usr/lib/wine-any-3.21/bin/wine
Comment 2 Nick Sarnie gentoo-dev 2019-03-02 18:18:44 UTC
Hi Mike,

What do you expect to happen if you have two slots of wine-any installed? If the shortcuts from both pointed to /usr/bin/wine, both shortcuts would open the eselect wine version. 

I don't know of a good solution that preserves the multislot use case.

Sarnex
Comment 3 Mike Lothian 2019-03-02 18:40:08 UTC
Shouldn't /usr/bin/wine be controllable by select

You don't want to break everyone's shortcuts every 2 weeks when there's a new release
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-02 18:53:32 UTC
Exactly.  The current behavior means that whenever wine is upgraded, all .desktop files are broken and need to be fixed manually.
Comment 5 Nick Sarnie gentoo-dev 2019-03-02 18:55:55 UTC
Okay, thanks.

It should be pretty easy to fix. I'll try to get to it soon. PRs always welcome.
Comment 6 Nick Sarnie gentoo-dev 2019-03-03 18:29:09 UTC
@Mike or Michał,

Can one of you point me to the location of one of these shortcut files pointing to a specific wine version?

I'm looking in /usr/share/applications, and they seem to be general:

wine-d3d9.desktop:
Exec=wine-d3d9 start /unix %f

wine.desktop:
Exec=wine start /unix %f

Thanks,
Sarnex
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-03 19:28:57 UTC
~/.local/applications
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-03 19:34:50 UTC
I'm sorry, I meant ~/.local/share/applications
Comment 9 Nick Sarnie gentoo-dev 2019-03-03 21:55:44 UTC
Thanks, I reproduced it.

This is due to the implementation of the desktop file writer.

https://github.com/wine-mirror/wine/blob/master/programs/winemenubuilder/winemenubuilder.c#L1467

The only fix I know of would be to hardcode to "/usr/bin/wine" in that file. Not sure if that's safe to do.

Sarnex
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-20 08:10:06 UTC
Ping.