FS#63218 - [steam] Absolute path in desktop files Exec key

Attached to Project: Community Packages
Opened by Stanisław Wokulski (fenuks) - Wednesday, 17 July 2019, 17:36 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:09 GMT
Task Type Feature Request
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Package `Exec` keys in steam.desktop and steam-native.desktop contain absolute path to the executable (`/usr/bin/steam-runtime` and `/usr/bin/steam-native` respectively), which makes it more difficult to run steam, for example, in sandbox with firejail (firejail creates symbolic link in `/usr/local/bin`). One is required to copy desktop to local applications directory, and alter it by hand. Please consider removing hard-coded binary path in Exec command.

Additional info:
* package version(s): 1.0.0.61-1

Steps to reproduce:
$ sudo bash -c 'cat << EOF > /usr/local/bin/steam-runtime
#!/bin/sh
firejail steam "\$@"
EOF'
$ sudo chmod +x /usr/local/bin/steam-runtime
# run desktop file somehow, exo-open is provided by exo
$ exo-open /usr/share/applications/steam.desktop
# steam is run without sandbox because of hard-coded path
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:09 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/steam/issues/15
Comment by Eli Schwartz (eschwartz) - Wednesday, 17 July 2019, 17:54 GMT
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (Packages: Multilib → Upstream Bugs)
  • Task assigned to Levente Polyak (anthraxx)
desktop file comes from upstream, can you try speaking to them about it?
Comment by Stanisław Wokulski (fenuks) - Wednesday, 17 July 2019, 18:26 GMT
Thank you for prompt answer – yes, I will ask upstream whether they would be willing to change that.
Comment by Stanisław Wokulski (fenuks) - Wednesday, 17 July 2019, 18:53 GMT
I have opened ticket on the steam-for-linux Github page, although PKGBUILD uses sed to change Exec command anyhow (to add -runtime or -native postfix), so it perhaps could be tweaked to strip path?
Comment by Eli Schwartz (eschwartz) - Thursday, 18 July 2019, 04:18 GMT
We certainly could, but the reason I encouraged you to open an upstream issue is to -- hopefully -- get this fixed in a way that benefits other distros too. A Fedora user has already commented that the rpmfusion package has the same issue.

The package maintainer may or may not choose to fix this now vs. wait for upstream's response. :)
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Christian Heusel (gromit) - Saturday, 02 September 2023, 12:22 GMT

Loading...