#568 Can't open directories with a whitespace

1.0
closed-wont-fix
nobody
pcmanfm (130)
4
2012-07-12
2012-07-11
Sworddragon
No

I'm using PCManFM git from july 8th. If I'm going into a directory with a whitespace and want to open it as root (Tools -> Open Current Folder as Root) I'm getting a message that the current directory can't be found and then nothing happens. Curiously this happens on "pcmanfm --desktop --profile LXDE" but not on "pcmanfm" and "pcmanfm --desktop".

Discussion

  • Lonely Stranger

    Lonely Stranger - 2012-07-11
    • labels: --> pcmanfm
    • milestone: --> 1.0
    • priority: 5 --> 4
     
  • Lonely Stranger

    Lonely Stranger - 2012-07-11

    This is most probably caused by incorrect setting of su_cmd parameter in config. I would like if you check the difference between profiles and tell us what is it. Thank you.

     
  • Sworddragon

    Sworddragon - 2012-07-12

    My LXDE profile contains "gksu '%s'" and the default profile contains "gksu %s". The only difference are the single quotes. I have now removed the single quotes from my profile and all is working fine. Are the single quotes an invalid character or is this a bug?

     
  • Lonely Stranger

    Lonely Stranger - 2012-07-12

    When some command argument is quoted then command interpreter will assume it is a single parameter. In case of the su command %s is the command to start, i.e. in your case it expands into "pcmanfm uri://xxx" and if it doesn't quoted then command will be "gksu pcmanfm uri://xxx" but quoted it will be "gksu 'pcmanfm uri://xxx'", i.e. in first case gksu will start "pcmanfm" with argument "uri://xxx" but in second case it will try to start "pcmanfm uri://xxx" without arguments but the most probably you don't have "/usr/bin/pcmanfm uri://xxx" executable file to run. So it's not a pcmanfm bug after all but misunderstanding of that su_cmd setting. Thank you.

     
  • Lonely Stranger

    Lonely Stranger - 2012-07-12
    • status: open --> closed-wont-fix
     

Anonymous
Anonymous

Cancel  Add attachments