Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405335 - x11-misc/x11vnc-0.9.13 - x11vnc.desktop is unable to launch server due to variable expansion gone bad
Summary: x11-misc/x11vnc-0.9.13 - x11vnc.desktop is unable to launch server due to var...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-22 20:32 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2012-11-25 15:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leho Kraav (:macmaN @lkraav) 2012-02-22 20:32:16 UTC
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
Comment 1 Sven Wegener gentoo-dev 2012-11-25 15:14:46 UTC
Plain % needs to be escaped as %% in .desktop files, because .desktop files provide their own % formatting. Probably your desktop environment is to blame.