← Back to team overview

edubuntu-bugs team mailing list archive

[Bug 1451915] [NEW] ltsp-localapps can not open files with accents in URI

 

Public bug reported:

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#\"}

** Affects: ltsp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/1451915

Title:
  ltsp-localapps can not open files with accents in URI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1451915/+subscriptions


Follow ups

References