FS#42703 - [tigervnc] modify vncserver.service to correct "no session for pid xxxxx" warning

Attached to Project: Community Packages
Opened by John (graysky) - Friday, 07 November 2014, 10:30 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 02 March 2015, 16:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Since updating to lxsession-1:0.5.0-1, starting an lxde-session via the systemd service causes an error upon startup that reads, "Error: No session for pid xxxxx." When I `ps aux | grep xxxxx` the offending pid belongs to lxpolkit. For example:

% ps aux | grep 30426
facade 30426 0.1 0.4 252236 18012 ? Sl 16:40 0:00 lxpolkit

Modifying the included /usr/lib/systemd/system/vncserver.service as follows fixes the problem (see attached) and see see  FS#42425  as well.

I also do not believe that this file should be provided in /usr/lib/systemd/system since the user needs to modify it inserting the correct username. Shouldn't this file go into /usr/share/tigervnc or the like with instructions to cp it with the modification to /etc/systemd/system?
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 02 March 2015, 16:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  type=simple and -fg added
Comment by John (graysky) - Monday, 02 March 2015, 15:42 GMT
  • Field changed: Percent Complete (100% → 0%)
The fix in trunk did not fix the problem... you need to change the type to simple and have the -fg switch as shown in  FS#42425  and as in the proposed service I attached.

Loading...