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

2023-04-23 Thread Elliot Speck
On Wed, 22 Feb 2023 16:10:03 -0800 Jaycee Santos 
 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



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

2023-02-22 Thread Jaycee Santos
Package: lutris
Version: 0.5.12-1
Followup-For: Bug #1028543
X-Debbugs-Cc: jlsan...@protonmail.com

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

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-5-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lutris depends on:
ii  cabextract1.9-3
ii  curl  7.88.1-1
ii  fluid-soundfont-gs3.1-5.3
ii  gir1.2-gtk-3.03.24.36-4
ii  gir1.2-webkit2-4.12.38.5-1
ii  mesa-utils8.5.0-1
ii  p7zip 16.02+dfsg-8
ii  psmisc23.6-1
ii  python3   3.11.2-1
ii  python3-dbus  1.3.2-4+b1
ii  python3-distro1.8.0-1
ii  python3-gi3.42.2-3+b1
ii  python3-lxml  4.9.2-1+b1
ii  python3-magic 2:0.4.26-3
ii  python3-pil   9.4.0-1.1+b1
ii  python3-requests  2.28.1+dfsg-1
ii  python3-setproctitle  1.3.1-1+b2
ii  python3-yaml  6.0-3+b2
ii  unzip 6.0-28
ii  x11-xserver-utils 7.7+9+b1

Versions of packages lutris recommends:
ii  gvfs-backends1.50.3-1
ii  libwine-development  7.22~repack-2
ii  python3-evdev1.6.1+dfsg-1+b1
ii  winetricks   20220411-1

Versions of packages lutris suggests:
pn  gamemode   
ii  gamescope  3.11.49-1

-- no debconf information



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

2023-01-12 Thread Elliot Speck
Package: lutris
Version: 0.5.12-1
Severity: normal
X-Debbugs-Cc: deb...@elliot.pro

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

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-6-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lutris depends on:
ii  cabextract1.9-3
ii  curl  7.87.0-1
ii  fluid-soundfont-gs3.1-5.3
ii  gir1.2-gtk-3.03.24.36-1
ii  gir1.2-webkit2-4.12.38.3-1
ii  mesa-utils8.5.0-1
ii  p7zip 16.02+dfsg-8
ii  psmisc23.6-1
ii  python3   3.10.6-3+b1
ii  python3-dbus  1.3.2-3
ii  python3-distro1.8.0-1
ii  python3-gi3.42.2-3
ii  python3-lxml  4.9.2-1
ii  python3-magic 2:0.4.26-3
ii  python3-pil   9.4.0-1
ii  python3-requests  2.28.1+dfsg-1
ii  python3-setproctitle  1.3.1-1+b1
ii  python3-yaml  6.0-3+b1
ii  unzip 6.0-27
ii  x11-xserver-utils 7.7+9+b1

Versions of packages lutris recommends:
ii  gvfs-backends1.50.2-2
pn  libwine-development  
ii  python3-evdev1.6.0+dfsg-1+b2
ii  winetricks   20220411-1

Versions of packages lutris suggests:
pn  gamemode   
pn  gamescope  

-- no debconf information