Mailinglist Archive: opensuse-packaging (25 mails)

< Previous Next >
[opensuse-packaging] update-alternatives and .desktop files
Hello,

i'm trying [0] to convert the spec from [1] to allow having multiple
packages of godot [2] with different versions installed.

The first solution implements parallel installations where the user can
choose between multiple versions from his gui menu. These are not
affected by the following issue.

The second approach uses update-alternatives to manage different
installed branches and the admin has to configure which godot version
should (only) appear in the menu.

Therefore .desktop files of different versions managed by
update-alternatives are not installed directly in /usr/share/applications .
Otherwise each installed entry will show up in the menu.

Only one file exists at [3] and this is a link to [4],
managed by update-alternatives.

Problem is:
If admin switches version of godot with update-alternatives,
[3] is still the same link and no update of the desktop-files database
cache seems to be triggered.

Consequently the user will still see the previous .desktop file, what
might become critical if different .desktop files of godot start to
diverge between branches.


Does someone has an idea how to solve this?

Is there another packaged application with desktop files managed by
update-alternatives I can look at?


[0] https://build.opensuse.org/package/show/home:cunix:godot/godot
[1] https://build.opensuse.org/package/show/games/godot
[2] https://godotengine.org/
[3] /usr/share/applications/org.godotengine.Godot.desktop
[4] /etc/alternatives/org.godotengine.Godot.desktop

All the best,
cunix
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups