Re: What to do with fuse Was: Re: [devel] Smb4K (and Lisa)
Philippe Fremy <[email protected]>
| Newsgroups | gmane.comp.kde.debian |
|---|---|
| Message-ID | <[email protected]> |
> Ok, with some work, it is possible. > (what a statement, imagine what this means...) > > What we need to do is to create a wrapper to start non-kde apps, a script > will do the job. > E.g. instead of starting "swriter fish://alex@marathon/tmp/somefile" > konqueror (or KRun or whatever) has to start > "to_be_written_wrapper_script swriter fish://alex@marathon/tmp/somefile". > This is possible by adjusting the desktop files. No big deal. > > And what does to_be_written_wrapper_script do ? > It checks whether the path argument points to a local file or not. > If yes, it simply starts the program swriter with the path. > If not (now it gets interesting), it changes the path to e.g. /home/user/ > fusemount/kio_gate/fish://alex@marathon/tmp/somefile. (Maybe we have to > do something with the special characters (:@//). > > Ok, now swriter tries to open damn_long_path/somefile. > When doing this, every parent directory of > ...kio_gate/fish://alex@marathon/ tmp/somefile will be stat'ed. > Now the not yet completely written fuse-kio gate has to answer for the > not really existing directories "yeah, of course this directory exists". > And finally it can feed the file into swriter :-) > > I don't see a reason why it shouldn't work :-) > > ...starting to code.... That rocks !!!!! I can't wait to start the new kde-integratXXX list to see more of this Philippe -- An open source OS for contactless Smart Cards http://www.jayacard.org - Jayacard