[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: keditbookmarks issue with $VARS
From:       David Faure <faure () kde ! org>
Date:       2006-06-19 8:18:36
Message-ID: 200606191018.36999.faure () kde ! org
[Download RAW message or body]

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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic