Ref: http://forums.fedoraforum.org/showthread.php?p=1538764 4 Exec=x11vnc -gui tray=setpass -rfbport PROMPT -bg -o %%HOME/.x11vnc.log.%%VNCDISPLAY This line does not work in reality. ==> /home/leho/.tail/awesome-leho <== 22/02/2012 22:26:56 Port prompt selected: 5900 starting gui, trying display: :0 22/02/2012 22:26:56 icon_mode_file=/tmp/x11vnc.tray.7fhZ6W 22/02/2012 22:26:56 Expanded logfile to '%%HOME/.x11vnc.log.%s9:5900' 22/02/2012 22:26:56 Expanded logfile to '%/home/leho/.x11vnc.log.%s9:5900' error opening logfile: %/home/leho/.x11vnc.log.%s9:5900 open: No such file or directory 22/02/2012 22:27:00 gui: trying to contact a x11vnc server at X display :0 ... 22/02/2012 22:27:00 gui: pinging :0 try=1 ... >>> sending remote command: "qry=ping" via X11VNC_REMOTE X property. error: could not connect to an x11vnc server at :0 (rc=1) 22/02/2012 22:27:03 gui: parent process 13936 has gone away: bailing out. 22/02/2012 22:27:03 gui: could not connect to: ':0', try again manually. Converting double-% into single-% works. ==> /home/leho/.tail/awesome-leho <== 22/02/2012 22:27:50 Port prompt selected: 5900 starting gui, trying display: :0 22/02/2012 22:27:50 icon_mode_file=/tmp/x11vnc.tray.RpWNcb 22/02/2012 22:27:50 Expanded logfile to '%HOME/.x11vnc.log.s9:5900' 22/02/2012 22:27:50 Expanded logfile to '/home/leho/.x11vnc.log.s9:5900' PORT=5900 22/02/2012 22:27:50 gui: got SIGUSR1 22/02/2012 22:27:50 gui: ping succeeded. Who is to blame here? Reproducible: Always
Plain % needs to be escaped as %% in .desktop files, because .desktop files provide their own % formatting. Probably your desktop environment is to blame.