I am writing an application that needs to be able to parse a path that is dragged from a remote server onto the command line. However, when I drag a path from a remote machine to the terminal I get something that looks like the following:
/home/user/.gvfs/sftp for Name on server-alias/the/full/path/is/here.file.
I would like just
/the/full/path/is/here.file
to be parsed. I was wondering if there's a setting I can tweak to prevent this extra path prefix (preferable) or if there's some built in functionality somewhere in linux to do this. I can of course use regexs to parse this, but I would like to avoid that if possible.
I'm on ubuntu 10.04 LTS.