[Bug 1451915] Re: ltsp-localapps can not open files with accents in URI
Tom
tom at g3w.be
Tue May 5 20:41:03 UTC 2015
This is the patch for
/usr/bin/ltsp-localapps
** Patch added: "ltsp-localapps.patch"
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1451915/+attachment/4391742/+files/ltsp-localapps.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/1451915
Title:
ltsp-localapps can not open files with accents in URI
Status in ltsp package in Ubuntu:
New
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/testé/video.mov
Then on the client, in syslog, i see:
ltsp-localappsd: Executing command as username user: vlc "/home/user/test303251/video.mov"
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/ltsp-localappsd
# 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_COMMAND=${LTSP_COMMAND%\"}
LTSP_COMMAND=${LTSP_COMMAND#\"}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1451915/+subscriptions
More information about the foundations-bugs
mailing list