Bug 31169

Summary: When started from MageiaWelcome in GNOME, draklive-install fails due to not running with root privileges
Product: Mageia Reporter: Martin Whitaker <mageia>
Component: RPM PackagesAssignee: GNOME maintainers <gnome>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: westel, yvesbrungard
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Martin Whitaker 2022-11-23 10:23:12 CET
The root cause is a change in the default PATH environment variable for applications started in a GNOME session. The path now has entries for /sbin and /usr/sbin appearing before the entries for /bin and /usr/bin. This change appears to be inherited from the systemd user session, and may or may not be a bug (I'd say it was).

/usr/bin/draklive-install is a shell script that (indirectly) runs /usr/sbin/draklive-install after disabling screensavers and disk auto-mounting and acquiring root privileges if not already running as root. So if draklive-install is started via a path lookup, these necessary actions will be bypassed.

Notwithstanding whether this is a bug in systemd, it is generally considered good practice for applications that need to run another binary to always use the full path to that binary and not to rely on the PATH environment variable being set correctly.
Martin Whitaker 2022-11-23 10:23:56 CET

CC: (none) => westel, yves.brungard_mageia

Comment 1 Lewis Smith 2022-11-23 11:56:34 CET
Thank for the report & analysis, Martin. Gnome is certainly showing problems for M9.

Assigned to the Gnome maintainers.

Assignee: bugsquad => gnome

Comment 2 papoteur 2022-11-23 13:55:25 CET
Hi Martin,
Should I understand that it would be enough to launch the command /usr/bin/draklive-install ?
Papoteur
Comment 3 papoteur 2022-11-23 18:35:21 CET
Should be fixed with 2.18 in git. I have also given absolute path for fixed commands.
Comment 4 Martin Whitaker 2022-11-23 18:55:35 CET
Thanks Papoteur. Yes, that should be all that's needed.
Comment 5 Martin Whitaker 2022-12-03 13:48:26 CET
Hi Papoteur,
We still have mageiawelcome-2.17 on the mirrors. Are you planning to release 2.18 soon?
Comment 6 papoteur 2022-12-03 15:06:07 CET
Hi Martin,
It's now on the way.
Comment 7 Martin Whitaker 2022-12-03 19:09:39 CET
Thanks Papoteur. I have confirmed it fixes the problem.

Status: NEW => RESOLVED
Resolution: (none) => FIXED