[Bug 1122410] New: lxqt-sudo does not inherit needed environment variables
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410 Bug ID: 1122410 Summary: lxqt-sudo does not inherit needed environment variables Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jack.penry.12@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Applications fail to start when executed via lxqt-sudo LXQt version: 0.13.0 For example, attempting to execute `lxqt-sudo yast2` yields: #Begin No protocol specified lxqt-sudo: Stripping child environment except for: DISPLAY, LANG, LANGUAGE, LC_ADDRESS, LC_ALL, LC_COLLATE, LC_CTYPE, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MESSAGES, LC_MONETARY, LC_NAME, LC_NUMERIC, LC_PAPER, LC_TELEPHONE, LC_TIME, PATH, QT_PLATFORM_PLUGIN, QT_QPA_PLATFORMTHEME, WAYLAND_DISPLAY, XAUTHORITY No protocol specified No protocol specified qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. error: XDG_RUNTIME_DIR not set in the environment. Failed to create wl_display (No such file or directory) qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. /usr/sbin/yast2: line 455: 3309 Aborted (core dumped) $y2ccbin $Y2UI_ARGS "$@" #End Alternatively, executing `su -c yast2` produces expected results. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c1
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c2
--- Comment #2 from Michael Vetter
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c3
--- Comment #3 from Michael Vetter
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c4
--- Comment #4 from Fabian Vogt
Running in qterminal: lxqt-sudo yast2
Launches yast without problems for me. On this system I run LXQt 0.13.0 from regular repos.
Do you have any special setup, repo? How do you launch lxqt-sudo, also from terminal?
XAUTHLOCALHOSTNAME is only needed if the system hostname changes. Run "sudo hostname asdffoofar" and try "lxqt-sudo yast2" again.
@Fabian, where did you see that LXQt clears $XAUTHLOCALHOSTNAME ?
It says so right in the output: "lxqt-sudo: Stripping child environment except for:"... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
Michael Vetter
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c5
Michael Vetter
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410
http://bugzilla.opensuse.org/show_bug.cgi?id=1122410#c7
Fabian Vogt
Created upstream issue: https://github.com/lxqt/lxqt-sudo/issues/101 Fix: https://github.com/lxqt/lxqt-sudo/pull/102 SR#671825
Thanks @Fabian for the fix!
(Seems like this happens only when one uses sddm + lxqt-sudo and with gdm + lxqt-sudo it works.)
Note that upstream might reject this because XAUTHLOCALHOSTNAME is a downstream addition to libxcb and not found in any other distro so far. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com