GNOME Bugzilla – Bug 134189
should be able to read/write compressed files
Last modified: 2010-08-29 11:41:10 UTC
Most docs in /usr/share/doc are gzipped and to view them in gedit requires first opening fileroller, then gedit. gnome-vfs already supports this but gedit does not seem to use it. i.e. the following fails. %gedit 'file:/usr/share/doc/HOWTO/en-txt/i810-HOWTO.gz#gzip'
Weird, it should work (at least it worked when I wrote and tested the code). Are you sure the URI you are passing to gedit is in the right format?
I think so - I got the syntax from. http://developer.gnome.org/doc/API/gnome-vfs/writing-modules.html Note that some uris work ok. For instance http://....
Have you tried with: file:/// ? Or with #gzip: ? Or both? IIRC, there is some problem in the gnome-vfs doc regarding this king of URIs.
Neither file:/ nor file:/// work for me. Do you mean theres some alternative #gzip syntax to try? ''' Could not open the file "file:///home/stephen/flight.txt.gz#gzip" because gedit has not been able to automatically detect the character coding. Please, check that you are not trying to open a binary file and try again selecting a character coding in the 'Open File...' (or 'Open Location') dialog. '''
I'd be inclined to close this bug... the problem is in gnome-vfs's gzip support which is known to be incomplete/broken. Or do other gnome apps which use gnome-vfs work for such files?
I haven't tried other apps. If this is indeed a gnome-vfs bug (and there are plenty of zip related ones) then perhaps gedit can warn or disable the buggy parts?
Before closing it, I'd like to be sure about the state of concatenated methods in gnome-vfs As I said, I'm sure they worked when I wrote the code. Writing compressed files is another kind of problem.
If someones feels inclned I guess it would also be possible to write a compressed-document-loader/saver variant instead of using gnome-vfs for zipped files...
*** Bug 389718 has been marked as a duplicate of this bug. ***
What's wrong with fixing gnome-vfs ?
nothing, but given that: - it hasn't happened in 10 years - gvfs is being written to replace gnome-vfs - I will not personally spend time on this I will not hold my breath waiting for it to happen :)
Still doesn't work with 2.26.1 which is using gio.
Still the same with 2.30.2
This will work for gedit 3