[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: Tenor KIO-slave?
by blacksheep on Thursday 14/Apr/2005, @02:51
My only grip about KIO is that tar, rar, etc should be implemented as pipes or something like that. I mean, it should be possible to view a TAR file from a FTP. Dunno if this is being worked on. My suggestion for how the url would look like is something like this: scp://server.com/file.tar|tar .

Anyway, yes, KIO is one of the best piece of software that lives in KDE. Really useful.
  Related Links
 ·   Articles on KDE in the News
 ·   Also by blacksheep
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: Tenor KIO-slave?
by Illissius on Thursday 14/Apr/2005, @08:28
I've always thought something like ftp://ftp.server.com/file.tar#tar:/file/inside/it would make sense -- taking a cue from the webpage.html#anchor-to-jump-to syntax. Don't know whether it would conflict with anything else, though.
[ Reply To This | View ]
  • Re: Tenor KIO-slave?
    by Spy Hunter on Thursday 14/Apr/2005, @19:21
    It would be great except that somebody might use anchors named tar: in their html file, and even possibly name their html file with a .tar extension. It would be hard to figure out what was meant in every situation.
    [ Reply To This | View ]
Re: Tenor KIO-slave?
by James L on Thursday 14/Apr/2005, @08:38
It is actually, and honestly a very annoying/good thing (depending on what I want to do, which I don't expect KDE to be able to telepathically figure out) with my config is that it does show up as the opened tar file over ftp or http. (It's something I forget which under file types, show in embedded viewer as default I believe.)

And tar, gzip, bzip all already are piped through eachother. The tar kio-slave only handles uncompressed tar files (As of at least KDE 2.x, as I last recall looking. I doubt it would have changed), and the appropriate gzip/bzip kio-slave is used automatically.

Ie, tar://home/user/example.tar.gz is really tar://gzip://home/user/example.tar.gz (or something like that)
[ Reply To This | View ]
Re: Tenor KIO-slave?
by Spy Hunter on Thursday 14/Apr/2005, @12:23
Here's my proposal: stack the protocols at the beginning, using the username part of the standard URL format as the file path for the archive. I think this could be implemented with no changes to the KIO framework, all the work would be done in the new IOSlaves.

A simple one: open a zip file on an HTTP server.

zip:/@http://server/file

Open a bzip2 compressed tar file on an HTTP server

tar:/@bzip2:@http://server/file

A complex example: open a particular file in a passworded rar file through fish://.

rar:/rardir/rarfile:rarpass@fish://user:pass@server/file.
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "If you have an itch not being scratched, you can scratch it, or pay someone to scratch it for you." -- Eric Laffoon
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]