#1028543 lutris: Application not shown in GNOME's application launcher without /usr/games in $PATH.

#1028543#5
Date:
2023-01-12 14:34:07 UTC
From:
To:
Hello,

It appears that the Lutris package (as of 0.5.12-1) makes assumptions
about the `PATH` variable for the user shell. If `$PATH` does not include
`/usr/games` by default (which zsh seems not to), the icon is simply not
displayed[1].

I fixed this in my local install by altering the Exec= line of the .desktop file
to `/usr/games/lutris` instead of `lutris`. This is how the `steam` package is
configured.

Looking at the source file[2], it seems that this is default upstream
behaviour which would need to be patched in Debian due to the usage of
/usr/games.

Warm regards,

Arcayr

1: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
2: https://github.com/lutris/lutris/blob/3f54c9f8bb207b747681f4f6e521860a25cc1980/share/applications/net.lutris.Lutris.desktop

#1028543#10
Date:
2023-02-23 00:10:03 UTC
From:
To:
I also ran into this problem recently (being unable to start lutris).
This gitlab issue seems somewhat relevant[1]. I think the actual bug is caused
by gdm3.

After finding your bug report, I was able to find out that /usr/games was also
missing from my $PATH under certain circumstances. The circumstances were
running a wayland kde plasma session that was launched through GDM on a Debian
system where games are in /usr/games. I was also unable to start five-or-more
or gnome-chess, as those are also located in /usr/games.

However, I am able to start lutris under GNOME through GDM; my PATH appears to be
set properly: `/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games`.

Whereas SDDM handles the PATH environment variable properly, something about
specifically launching the plasma wayland session (or sway) through GDM leads
to PATH being set to:
`/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`.

The issue persists on a fresh install of Debian 12 bookworm.

I still do not know why this happens, but I assume it is related to GDM's handling
of wayland sessions.

Jaycee

1: https://gitlab.gnome.org/GNOME/gdm/-/issues/692

#1028543#15
Date:
2023-04-23 11:02:11 UTC
From:
To:
On Wed, 22 Feb 2023 16:10:03 -0800 Jaycee Santos  <jlsantos@protonmail.com> wrote:
 > I still do not know why this happens, but I assume it is related to
GDM's handling
 > of wayland sessions.

I'm unsure we should even be using /usr/games. As far back as 2010 there
was movement
to deprecate its use.

As far as I'm aware Debian is the only mainstream distribution that uses
/usr/games for anything anymore and - given the current state of the gaming
world with its deluge of always-online DRM - I can't imagine something
like it
will be useful again.

Warm regards,

Arcayr