On Jun 23 18:21, poma wrote:
On 23.06.2013 17:01, Corinna Vinschen wrote:
…
> Btw., just for the records, I had found an ugly workaround in the
> meantime, but it did the trick:
>
> I started startxfce4 from ~/.Xclients via `ssh localhost'. This
> enforced a valid session, which made polkit-gnome-authentication-agent-1
> start up normally.
…
/etc/systemd/system/vncserver@\:<DISPLAY>.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 ||
:'
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i -geometry
<WIDTH>x<HEIGHT> -fg"
[Install]
WantedBy=multi-user.target
- edit <DISPLAY> <USER> <WIDTH> <HEIGHT> and other vncserver
parameters
appropriately
- systemctl daemon-reload
- systemctl enable/start vncserver@\:<DISPLAY>.service
Thanks, but... what are you trying to tell me? I already started
vncserver as service along the lines of the above
-Type=simple
-ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i -geometry
<WIDTH>x<HEIGHT> -fg"
+Type=forking
+-ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i -geometry
<WIDTH>x<HEIGHT>"
for a long time, but it did not start a valid session and thus
polkit-gnome-authentication-agent-1 didn't start. My .vnc/xstartup then
calls /etc/X11/xinit/xinitrc and my .Xclient calls startxfce4 (with
--with-ck-launch until yesterday). I don't see anything in the above
which would change that behaviour.
Corinna