From kde-devel Mon Jun 19 08:18:36 2006 From: David Faure Date: Mon, 19 Jun 2006 08:18:36 +0000 To: kde-devel Subject: Re: keditbookmarks issue with $VARS Message-Id: <200606191018.36999.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=115070515905500 On Monday 19 June 2006 01:30, Kurt V. Hindenburg wrote: > On Sunday 18 June 2006 17:11, David Faure wrote: > | Hmm, but then we can have all sorts of invalid urls in our bookmarks, plus > | useless reparsing... How about using valid urls for konsole bookmarks > | instead? > | Something like > | ssh://user@machine?cmd='echo $HOSTNAME' > | where > | KUrl::host() returns machine, and > | KUrl::queryItem("cmd") returns 'echo $HOSTNAME'. > | (see next kurltest commit, I tested this in trunk only, but it should work > | in kde3 too) > > It looks like KURL change the space to a %20: > ssh://kvh@e3000?cmd='echo%20$HOSTNAME' Yes (but note how using queryItem takes care of decoding that for you) > This doesn't work anyway... > ssh -l kvh e3000 ? You need to adapt the code of course.... > Using this ?cmd= also is not apparent to users... it will not occur to most to > use this format... Sure; I was assuming that you would have an "Add Bookmark" menu item which would take care of creating this URL automatically, from the input from the user. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<