gnome-session-inhibit passes arguments to execvp incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-session (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
steps to reproduce:
gnome-session-
Excepted result is of course wait for 10 seconds before termination.
Actual result:
Failed to open "sleep 10"
That is causes because shell ignores the first argument that should be the program name. But inhibit passes "-c" as the first argument.
Attached patch fixes the inhibit to work correctly. Exactly like sudo, parallel, systemd-inhibit or any similar program works.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: gnome-session-bin 3.20.2-1ubuntu7
ProcVersionSign
Uname: Linux 4.8.0-26-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Nov 6 07:22:38 2016
InstallationDate: Installed on 2037-12-25 (-7719 days ago)
InstallationMedia: Lubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: gnome-session
UpgradeStatus: Upgraded to yakkety on 2016-10-21 (15 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.