Hi, Thanks, that's a straightforward and clear solution. I gave only the ftp://hostname/dir/ location for dolphin, and provided the username/password in the prompt. I still think that it would be a bit more logical that if once the user logged in to a remote site - either by giving the username in the prompt, or in the URL - the URL of a to-be-opened file within this session would contain the username. But that's just a side remark. Thanks On Sun, 19 Sep 2010, Duncan wrote: > Barna Daniel posted on Sun, 19 Sep 2010 06:15:04 +0200 as excerpted: > >> I would like to set up an emacs wrapper script, which can be used to >> open remote files (ftp:// for example). Emacs uses the >> /ftp:username@hostname:dir/file syntax for these files, hence the >> necessity of this wrapper, because kde (dolphin, for example) gives the >> remote file's url as ftp://hostname/dir/file. I can simply transform >> this string, that would not be a problem. But the username is not >> provided in the url. Is there a possibility to provide also the username >> in kde's remote urls? > > AFAIK, KDE's simply passing on the URL it gets (from wherever). If the > URL it gets has the username in it, it'll pass that on. If it doesn't, it > doesn't. > > Which means, if you're putting it in as a bookmark, fill in the username@ > bit and kde should keep it. > > Else... since you were talking wrapper script and I do mostly bash > scripting here, I was already creating a picture in my head of a big bash > case statement. Case $URL in... with the pattern matching some place you > have have a user account, and the commands substituting in the appropriate > username@ bit. A dozen different places with user accounts would be a > dozen different case-matches... > > -- > Duncan - List replies preferred. No HTML msgs. > "Every nonfree program has a lord, a master -- > and if you use the program, he is your master." Richard Stallman > > ___________________________________________________ > This message is from the kde mailing list. > Account management: https://mail.kde.org/mailman/listinfo/kde. > Archives: http://lists.kde.org/. > More info: http://www.kde.org/faq.html. > ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.