steam xdg/application menu entry gets created as sudo/root

Bug #1985900 reported by Hash Borgir
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
steam (Ubuntu)
New
Undecided
Unassigned

Bug Description

I noticed a issue/problem in Ubuntu 22.04 in package 'steam'

The menu item which is created (I'm using KDE/Kubuntu 22.04.1) in XDG App Menu -> Games -> Steam, the menu entry is created with 'sudo /usr/games/steam %U', which causes it to launch as sudo/root and not as user, and this causes a conflict with if you launch steam from command line as user.

If you start steam from menu, windows are blank, nothing renders. If you start as user from command line, it's fine.

Why is the 'steam' package's menu shortcut for a user created as 'sudo'?

drwxr-xr-x 1 root root 186 Aug 12 01:20 .steam is created in /root which seems very incorrect.
lrwxrwxrwx 1 root root 24 Aug 12 01:19 .steampath -> /root/.steam/sdk32/steam

This is on brand new 22.04 install updated to .1.

Modifying the menu entry to '/usr/games/steam %U' fixes the problem, but it will come back on package update.

Then launching steam from menu or cli is identical and has no issues in rendering content in steam windows.

Fix would be to modify how the menu entry is created and omit 'sudo'.

Unless that is, I'm missing the point on why the menu shortcut is created with sudo.

Hash Borgir (hashborgir)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.