Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336572 - x11-misc/pcmanfm-0.9.7-r2 fails to pass filenames with spaces to application
Summary: x11-misc/pcmanfm-0.9.7-r2 fails to pass filenames with spaces to application
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markos Chandras (RETIRED)
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2010-09-09 09:03 UTC by Vladimir
Modified: 2011-02-22 13:22 UTC (History)
2 users (show)

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 Vladimir 2010-09-09 09:03:42 UTC
When I double-click on my document (let's say, an SVG file), and its full path contains some spaces, PCManFM gives an error message saying that tere is no such file or catalog.
It also shows the command it tried to run, and it contains the part of the file's path name before the very first space in it. 
For example:
    "/home/user/My Documents/MyPicture.svg"
    If I double-click on it, PCManFM would say something like "unable to start the child process '/home/user/My' (no such file or directory)".

I'm not sure whether this is a PCManFM's problem of Inkscape's one actually (since I can easily open PDF files with ePDFView from the very same catalog), but something definitely goes wrong.

Reproducible: Always

Steps to Reproduce:
1. Create a directory which name would contain some spaces.
2. Create an .svg file in it.
3. Open this directory in PCManFM.
4. Double-click on the .svg-file to open it with Inkscape.

Actual Results:  
PCManFM gives an error message and seems like trying to run a part of the file's path as a program.

Expected Results:  
The double-clicked .svg file should be opened with Inkscape.

emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-x86_64-Mobile_AMD_Sempron-tm-_Processor_3800+-with-gentoo-2.0.1
Timestamp of tree: Fri, 03 Sep 2010 23:30:01 +0000
distcc[3667] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distccd.log: Permission denied [disabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r99, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/mnt/data/Install/GNU-LinuxSoft/distfiles/"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://gentoo.kiev.ua/ftp/ ftp://gentoo.kiev.ua/"
LANG="ru_RU.UTF-8"
LC_ALL="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/mnt/data/Install/GNU-LinuxSoft/binpkg/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/sage-on-gentoo /usr/local/overlays"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib acpi alsa amd64 amrnb amrwb apm arts ass atm audiofile bash-completion bcmath berkdb bzip2 cairo calendar cdb cddb cdparanoia cdr cgi clamav cli cracklib crypt ctype curl curlwrappers cxx dbm dbus dbx dga djvu dri dssi dts dvd dvdr dvdread encode evo exif expat faac faad fastcgi fbcon fbcondecor festival ffmpeg fftw firefox flac flatfile freetds ftp fuse gd gdbm geoip gif gimp ginac git glut gmp gnuplot gnustep gnutls gsl hal hddtemp htmlhandbook icc iconv icq idn imlib inifile innodb irc jabber jack javascript jbig jikes jpeg jpeg2k krb4 lame laptop lash latex ldap leim libcaca libnotify libsamplerate libwww lm_sensors lua lzo mad maildir matroska matrox mcal mhash mikmod milter mime mmap mmx mmxext mng modplug modules motiff mozilla mp3 mpeg mpi mplayer msn mudflap mule multilib musepack musicbrainz mysql mysqli nas ncurses nforce2 nls nptl nptlonly nsplugin nvidia ogg openal opencore-amr opengl openmp osc pam pcntl pdf plotutils pmu png posix pppd prelude profile python qt3support qt4 quicktime radius readline recode reflection rss rtc ruby samba sasl sdl session sharedmem shorten simplexml skins slang slp sndfile snmp soap sockets socks5 sox speex spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg symlink sysfs syslog systray sysvipc szip taglib tcl tcpd tetex theora threads tidy tiff timidity truetype unicode usb vcd vhosts vorbis wavpack wddx webkit x264 xattr xcb xcomposite xface xine xinerama xml xml-rpc xorg xosd xpm xsl xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Luther (few) 2010-09-09 09:12:03 UTC
I noticed this with other applications too.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-09-09 09:22:28 UTC
I can't reproduce it. Just created an folder "test foo" and a file "my foo.txt" inside. I doubled clicked on folder, pcmanfm entered the dir successfully, and when I doubled clicked the file, kate opened it just fine
Comment 3 Sebastian Luther (few) 2010-09-09 09:45:12 UTC
I can't reproduce it on my / fs either. Looks like it only happens on my 'vfat' formatted usb drive.
Comment 4 Vladimir 2010-09-09 12:21:54 UTC
Like I have mentioned above, I can open PDF files from such directories too, but not SVG files with Inkscape. So, this is, obviously, application-dependent case.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-09-09 12:23:55 UTC
(In reply to comment #4)
> Like I have mentioned above, I can open PDF files from such directories too,
> but not SVG files with Inkscape. So, this is, obviously, application-dependent
> case.
> 

True, but application dependent can also mean file manager independent. Did you try to use another fm ( nautilus, dolphin ) and see if you experience the same weird behavior?
Comment 6 Vladimir 2010-09-09 12:46:06 UTC
(In reply to comment #5)
> 
> True, but application dependent can also mean file manager independent. Did you
> try to use another fm ( nautilus, dolphin ) and see if you experience the same
> weird behavior?
> 
Yes, I tried to use Thunar and everything works fine in Thunar.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-09-09 20:51:24 UTC
Ok. I sent an email to upstream about this
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2010-10-04 18:54:30 UTC
Could you please try libfm/pcmanfm 9999 and see if it still fails for you? Thanks
Comment 9 Vladimir 2010-10-11 22:02:47 UTC
(In reply to comment #8)
> Could you please try libfm/pcmanfm 9999 and see if it still fails for you?
> Thanks
> 
Today I've tried pcmanfm-9999 and it shows the very same behaviour that the previous version did. It still does not allow to open some files which full path contains spaces with siple double-clicking.
Comment 10 Vladimir 2010-10-15 10:29:04 UTC
(In reply to comment #8)
> Could you please try libfm/pcmanfm 9999 and see if it still fails for you?
> Thanks
> 

Moreover, pcmanfm-9999 even refuses to copy or move files whith spaces in path via "Ctrl+C/ Ctrl+V".
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2010-10-15 11:11:04 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > Could you please try libfm/pcmanfm 9999 and see if it still fails for you?
> > Thanks
> > 
> 
> Moreover, pcmanfm-9999 even refuses to copy or move files whith spaces in path
> via "Ctrl+C/ Ctrl+V".
> 

Yeah I noticed. -9999 is heavily broken atm but I consider it as normal behavior since it is a live ebuild
Comment 12 Markos Chandras (RETIRED) gentoo-dev 2010-10-17 11:06:03 UTC
They released 0.9.8 but this problem is still there. I contacted the upstream again.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2010-10-20 07:43:01 UTC
http://pcmanfm.git.sourceforge.net/git/gitweb.cgi?p=pcmanfm/libfm;a=commitdiff;h=96fa31c757189c7c5f60d4de4c2df236d2cba0ea

I guess you can try to build libfm-9999 again. It is supposed to be fixed now
Comment 14 Vladimir 2010-10-20 10:09:37 UTC
(In reply to comment #13)
> http://pcmanfm.git.sourceforge.net/git/gitweb.cgi?p=pcmanfm/libfm;a=commitdiff;h=96fa31c757189c7c5f60d4de4c2df236d2cba0ea
> 
> I guess you can try to build libfm-9999 again. It is supposed to be fixed now
> 

I have re-emerged libfm-9999 and pcmanfm-9999 again and now it copies files via Ctrl+C/Ctrl+V correctly. It also lets me open PDF files via double-click, but not SVG or plain text files. Just like in the case I reported at the very beginning of this thread.
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2010-10-26 10:46:15 UTC
Maybe you want to contact upstream directly using their bugzilla or email
	
pcman.tw_AT_gmail_DOT_com

I can't reproduce your problem so you might be able to give them more accurate information than me
Comment 16 Vladimir 2010-10-27 09:35:56 UTC
(In reply to comment #15)
> Maybe you want to contact upstream directly using their bugzilla or email
> 
> pcman.tw_AT_gmail_DOT_com
> 
> I can't reproduce your problem so you might be able to give them more accurate
> information than me
> 
I have created a bugreport on the upstream bugzilla. Here is a link:
http://sourceforge.net/tracker/?func=detail&aid=3096318&group_id=156956&atid=801864
Comment 17 Markos Chandras (RETIRED) gentoo-dev 2011-02-02 22:20:42 UTC
0.9.8 no longer on tree. Maybe you want to try the fresh snapshot instead
Comment 18 Vladimir 2011-02-04 14:56:16 UTC
(In reply to comment #17)
> 0.9.8 no longer on tree. Maybe you want to try the fresh snapshot instead
> 
I have emerged x11-misc/pcmanfm-0.9.9_pre20110202 and it looks like this issue has been fixed now. At least, I cannot reproduce it.
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2011-02-22 13:22:04 UTC
Yes this seems to be fixed in last snapshots :)