/usr/bin/lightdm-gtk-greeter-settings-pkexec: 7: /usr/bin/lightdm-gtk-greeter-settings-pkexec: [[: not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LightDM GTK Greeter Settings |
Fix Released
|
Undecided
|
Unassigned | ||
lightdm-gtk-greeter-settings (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
# Context
Running xfce4-settings-
## Expected
No output in terminal.
## Observed
This output in terminal:
/usr/bin/
/usr/bin/
/usr/bin/
uses bash-specific syntax but calls /bin/sh which enables sh-only mode.
In practice it means that special handling of "-s=" and "--socket-id=" arguments is not performed.
I don't know if this may be the sign of more bugs.
The script itself is very short, here it is:
#!/bin/sh
APP_PATH=
# Check for "socket" argument
for i in "$@"; do
if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
exit $?
fi
done
pkexec "${APP_PATH}" "$@"
Thank you for your attention.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lightdm-
ProcVersionSign
Uname: Linux 4.4.0-34-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Aug 17 08:15:22 2016
InstallationDate: Installed on 2016-07-05 (42 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: lightdm-
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Sean Davis: Approve
-
Diff: 8 lines (+1/-1)1 file modifiedbin/lightdm-gtk-greeter-settings-pkexec (+1/-1)
Changed in lightdm-gtk-greeter-settings (Ubuntu): | |
importance: | Undecided → Medium |
Changed in lightdm-gtk-greeter-settings: | |
milestone: | none → 1.2.2 |
status: | Fix Committed → Fix Released |
Confirming this on 1.2.1-1. If I run lightdm- gtk-greeter- settings- pkexec with -s anything as an argument, the shell script errors. Otherwise the program starts fine.