You are not logged in.

#1 2010-11-13 18:45:37

s@ndro
Member
From: Milano - Italy
Registered: 2010-05-11
Posts: 10

Problem with filenames containing special characters

Folks,

hope this is the right forum. I have a problem that could be related to XFCE (even if the situation is rather confusing and the DE behavior could be just a red herring).

Trying to send a file (with some spaces in its name) using Thunar's "send to mail recipient" feature, it is exported in the mail client (I use Thunderbird) with each space substituted by "%20":

My file -> My%20file

Then, when I try to send the e-mail, TB complains returning an error:

Sending of message failed.
Unable to open the temporary file /home/sandro/Documents/My%20file.
Check your 'Temporary Directory' setting.

Something similar has already been reported in XFCE bug tracker:

http://bugzilla.xfce.org/show_bug.cgi?id=6678

but from the reply it seems that something is wrong somewhere in the system (and not in Thunar), 'cause the URI translation is working properly.
On the other hand, I have the evidence that other tools behave similarly (for example, using pdfchain to merge some files containing spaces in their names, I obtain a failure with a "generic pdftk error" reported; no problem when filenames are "standard", of course).

I'm using an UTF-8 locale and my /tmp is mounted on a ext4 partition (if this can help...)

Please help me!

Last edited by s@ndro (2010-11-14 12:56:05)


Nothing is hard to a willing mind

Offline

#2 2010-11-14 09:04:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem with filenames containing special characters

You can substitute underscores for spaces. Is there a way to quote that /home/sandro/Documents/My%20file (i.e. send "/home/sandro/Documents/My%20file")?

Last edited by karol (2010-11-14 09:05:24)

Offline

#3 2010-11-14 09:27:17

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Problem with filenames containing special characters

I think

"$@"

does what you need.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2010-11-14 12:19:26

s@ndro
Member
From: Milano - Italy
Registered: 2010-05-11
Posts: 10

Re: Problem with filenames containing special characters

Guys,

thank you very much for your replies.

@karol: quoting should be part of Thunar (or exo) code, no chance to do it explicitely (I'm just right-clicking on a filename inside a Thunar window and using the "set to mail recipient" option...)

@.:B:.: sorry, but I didn't understand...

BTW, I found another bug report in upstream (http://bugzilla.xfce.org/show_bug.cgi?id=6821) which describes the same problem.


Nothing is hard to a willing mind

Offline

#5 2010-11-14 12:47:28

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Problem with filenames containing special characters

I thought you could/had to specify the command, but if you cannot, than disregard my suggestion smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB