Public bug reported:
steps to reproduce:
gnome-session-inhibit sh -c "sleep 10"
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
ProcVersionSignature: Ubuntu 4.8.0-26.28-generic 4.8.0
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)
** Affects: gnome-session (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug patch yakkety
** Attachment added: "Simple fix for issue."
https://bugs.launchpad.net/bugs/1639536/+attachment/4773281/+files/fix_inhibit_exec.patch
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1639536
Title:
gnome-session-inhibit passes arguments to execvp incorrectly
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1639536/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs