ltsp-localapps can not open files with accents in URI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Fix Released
|
Low
|
Alkis Georgopoulos |
Bug Description
If I try to open a file in a localapp, and the filename (or path) contains accented letters, the URI is not passed correctly to that local app.
For example if I run:
ltsp-localapps vlc /home/user/
Then on the client, in syslog, i see:
ltsp-localappsd: Executing command as username user: vlc "/home/
And vlc gives an error saying that this URI is not valid.
The problem seems to be located in the way this filename is passed:
# xprop is used to set the X property LTSP_COMMAND:
xprop -root -f LTSP_COMMAND 8s -set LTSP_COMMAND "/usr/bin/vlc --started-from-file %U"
which is read by the daemon /usr/bin/
# Poll for LTSP_COMMAND changes and execute
xprop -notype -root -spy LTSP_COMMAND | while read junk_x junk_y LTSP_COMMAND ; do
# Strip off leading and trailing double-quotes.
LTSP_
LTSP_
affects: | ltsp (Ubuntu) → ltsp |
Changing "8s" to "8u" fixes this:
xprop -root -f LTSP_COMMAND 8u -set LTSP_COMMAND "/usr/bin/vlc --started-from-file %U"