When run as root it starts, when run unpriviledged it does not detect X11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Plank |
New
|
Undecided
|
Unassigned |
Bug Description
If I start plank -d as unprivileged user (since recently) it gives me the following error at quits:
[INFO 17:03:12.994917] [AbstractMain:229] Plank version: 0.11.4
[INFO 17:03:12.994959] [AbstractMain:230] Kernel version: 4.20.3-arch1-1-ARCH
[INFO 17:03:12.994987] [AbstractMain:231] GLib version: 2.58.2 (2.58.1)
[INFO 17:03:12.995014] [AbstractMain:234] GTK+ version: 3.24.3 (3.24.1)
[INFO 17:03:12.995037] [AbstractMain:237] Wnck version: 3.30.0
[INFO 17:03:12.995065] [AbstractMain:238] Cairo version: 1.16.0
[INFO 17:03:12.995089] [AbstractMain:239] Pango version: 1.42.3
[INFO 17:03:12.995111] [AbstractMain:241] + Cairo/Gtk+ HiDPI support enabled
[INFO 17:03:12.995135] [AbstractMain:247] + XInput Barriers support enabled
[WARN 17:03:12.995175] [Environment:179] Neither of XDG_SESSION_
[CRITICAL 17:03:12.995199] [AbstractMain:257] Only X11 environments are supported.
Run as root plank starts and says:
[INFO 17:03:12.994917] [AbstractMain:229] Plank version: 0.11.4
[INFO 17:03:12.994959] [AbstractMain:230] Kernel version: 4.20.3-arch1-1-ARCH
[INFO 17:03:12.994987] [AbstractMain:231] GLib version: 2.58.2 (2.58.1)
[INFO 17:03:12.995014] [AbstractMain:234] GTK+ version: 3.24.3 (3.24.1)
[INFO 17:03:12.995037] [AbstractMain:237] Wnck version: 3.30.0
[INFO 17:03:12.995065] [AbstractMain:238] Cairo version: 1.16.0
[INFO 17:03:12.995089] [AbstractMain:239] Pango version: 1.42.3
[INFO 17:03:12.995111] [AbstractMain:241] + Cairo/Gtk+ HiDPI support enabled
[INFO 17:03:12.995135] [AbstractMain:247] + XInput Barriers support enabled
[WARN 17:03:12.995175] [Environment:179] Neither of XDG_SESSION_
[CRITICAL 17:03:12.995199] [AbstractMain:257] Only X11 environments are supported.
~
$ sudo plank -d
[sudo] Passwort für philipp:
[DEBUG 17:04:06.409535] [GLib] posix_spawn avoided (fd close requested)
[INFO 17:04:06.444149] [AbstractMain:229] Plank version: 0.11.4
[INFO 17:04:06.444184] [AbstractMain:230] Kernel version: 4.20.3-arch1-1-ARCH
[INFO 17:04:06.444202] [AbstractMain:231] GLib version: 2.58.2 (2.58.1)
[INFO 17:04:06.444228] [AbstractMain:234] GTK+ version: 3.24.3 (3.24.1)
[INFO 17:04:06.444251] [AbstractMain:237] Wnck version: 3.30.0
[INFO 17:04:06.444272] [AbstractMain:238] Cairo version: 1.16.0
[INFO 17:04:06.444296] [AbstractMain:239] Pango version: 1.42.3
[INFO 17:04:06.444315] [AbstractMain:241] + Cairo/Gtk+ HiDPI support enabled
[INFO 17:04:06.444330] [AbstractMain:247] + XInput Barriers support enabled
[WARN 17:04:06.444362] [Environment:161] XDG_SESSION_CLASS not set in this environment!
[WARN 17:04:06.444382] [Environment:179] Neither of XDG_SESSION_
[WARN 17:04:06.444397] [Environment:192] XDG_SESSION_TYPE not set in this environment!
[INFO 17:04:06.466112] [WindowControl:68] Window-manager: bspwm
[DEBUG 17:04:06.466841] [DockletManager
[INFO 17:04:06.466909] [DockletManager
[DEBUG 17:04:06.467322] [DockletManager
[INFO 17:04:06.467371] [DockletManager
[DEBUG 17:04:06.467717] [DockletManager
[INFO 17:04:06.467757] [DockletManager
[DEBUG 17:04:06.468083] [DockletManager
[INFO 17:04:06.468121] [DockletManager
[DEBUG 17:04:06.468483] [DockletManager
[INFO 17:04:06.468522] [DockletManager
[INFO 17:04:06.469655] [AbstractMain:301] Running with 1 docks ('dock1')
[DEBUG 17:04:06.469698] [GLib] posix_spawn avoided (fd close requested)
[DEBUG 17:04:06.470133] [DockController:79] Create dock 'dock1' (config_folder = /root/.
[DEBUG 17:04:06.470393] [Settings:53] Bind 'PlankDockPrefe
[CRITICAL 17:04:06.471689] [DBusManager:168] Not able to register our interfaces
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.471: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
(plank:5938): dconf-WARNING **: 17:04:06.472: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
[DEBUG 17:04:06.505709] [Preferences:349] Loading preferences from file '/usr/share/
[DEBUG 17:04:06.506166] [GLib] posix_spawn avoided (fd close requested)
[WARN 17:04:06.571558] Unable to get org.ayatana.bamf matcher: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
[CRITICAL 17:04:06.575571] [GLib-GIO] g_dbus_
[WARN 17:04:06.575596] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.579455] [GLib-GObject] g_signal_
[WARN 17:04:06.579473] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.583536] [GLib-GObject] g_signal_
[WARN 17:04:06.583554] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.587422] [GLib-GObject] g_signal_
[WARN 17:04:06.587440] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.591702] [GLib-GObject] g_signal_
[WARN 17:04:06.591761] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.596006] [GLib-GObject] g_signal_
[WARN 17:04:06.596081] [GLib-GObject] invalid (NULL) pointer instance
[CRITICAL 17:04:06.600134] [GLib-GObject] g_signal_
[DEBUG 17:04:06.600321] [ItemFactory:176] Loading dock elements from '/root/
[DEBUG 17:04:06.600721] [Preferences:349] Loading preferences from file '/root/
[DEBUG 17:04:06.601216] [Preferences:349] Loading preferences from file '/root/
[DEBUG 17:04:06.601610] [Preferences:349] Loading preferences from file '/root/
[DEBUG 17:04:06.602018] [Preferences:349] Loading preferences from file '/root/
[DEBUG 17:04:06.602485] [Preferences:349] Loading preferences from file '/root/
[DEBUG 17:04:06.602933] [Preferences:349] Loading preferences from file '/root/
(plank:5938): dconf-WARNING **: 17:04:06.603: failed to commit changes to dconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
[CRITICAL 17:04:06.607744] [GLib-GIO] g_dbus_
[WARN 17:04:06.608130] Failed to get running applications:
[CRITICAL 17:04:06.608972] [GLib] g_error_free: assertion 'error != NULL' failed
[WARN 17:04:06.615769] (Services/
[CRITICAL 17:04:06.620075] [GLib-GIO] g_dbus_
[WARN 17:04:06.620332] Failed to register favorites:
[CRITICAL 17:04:06.621149] [GLib] g_error_free: assertion 'error != NULL' failed
[DEBUG 17:04:06.621249] [GLib] posix_spawn avoided (fd close requested)
[WARN 17:04:06.623168] [Unity:92] Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
[DEBUG 17:04:06.623321] [GLib] posix_spawn avoided (fd close requested)
[WARN 17:04:06.625601] [Unity:92] Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=
[INFO 17:04:06.625913] [HideManager:618] Barriers enabled (XInput 2.3 support)
[WARN 17:04:06.626686] [Environment:179] Neither of XDG_SESSION_
[DEBUG 17:04:06.626830] [Settings:53] Bind 'PlankGnomeDesk
[CRITICAL 17:04:06.632268] [GLib-GIO] g_dbus_
[WARN 17:04:06.632799] Failed to get running applications:
[CRITICAL 17:04:06.633857] [GLib] g_error_free: assertion 'error != NULL' failed
[WARN 17:04:06.640081] (Services/
[DEBUG 17:04:06.648593] [Preferences:349] Loading preferences from file '/usr/share/
[INFO 17:04:06.674123] [DrawingService
[INFO 17:04:06.688348] [DockRenderer:491] Cairo.SurfaceType: XLIB
My system is a 64bit Arch with all updates, WM is bspwm.
plank --version
0.11.4
The DISPLAY variable is set to :0 for both, root and normal user.
Setting XDG_SESSION_DESKTOP or similar does not seem to have an effect and they are unset for both, root and normal user.
xdpyinfo | grep -i version
version number: 11.0
X.Org version: 1.20.3
Plank was installed as follows: pacman -S plank
Videocard/driver:
lspci -nnk | grep -i vga -A3
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
DeviceName: Onboard IGD
Subsystem: Dell HD Graphics 620 [1028:075b]
Kernel driver in use: i915
as user Do Quyet (mr.quyetdx) suggested here: https:/ /bugs.launchpad .net/plank/ +bug/1811492 TYPE=x11` in ~/.xinitrc fixed it for me.
adding export XDG_SESSION_
I'm using Arch and
plank --version
0.11.4.24-0a84Arch