Bug 120632

Summary: quanta can't open URLs but its .desktop file offers to do so
Product: [Unmaintained] quanta Reporter: Daniel O'Connor <darius>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniel O'Connor 2006-01-23 05:58:56 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    FreeBSD Ports
OS:                FreeBSD

Quanta's desktop file has..
Exec=quanta %U

however if you try and feed it a URL it just (apparently) ignores it and starts up with a blank page.

It would be nice if you could open just standalone HTML pages. I guess an alternative would be to change it to a %f but being able to edit HTML files without needing project infrastructure would be very useful. (ie read with GET, save with PUT).
Comment 1 András Manţia 2006-01-23 09:09:51 UTC
Hm, Quanta should open URLs as it uses KDE's KIOSLAVE technology to deal 
with files, so it doesn't matter if it is local or remote. It even 
works with remote projects. I just tried with the fish protocol and it 
works. (fish://user@server in Konqueror, and on a HTML file, I chose 
Open With->Quanta Plus).
Can you see if you can open a remote file via File->Open?
Comment 2 Daniel O'Connor 2006-01-23 14:01:27 UTC
On Monday 23 January 2006 18:39, AndrXXs ManXXia wrote:
> Hm, Quanta should open URLs as it uses KDE's KIOSLAVE technology to deal
> with files, so it doesn't matter if it is local or remote. It even
> works with remote projects. I just tried with the fish protocol and it
> works. (fish://user server in Konqueror, and on a HTML file, I chose
> Open With->Quanta Plus).
> Can you see if you can open a remote file via File->Open?


Hmm, if I put..
http://server
in the directory bar I get a popup saying that "The file or folder 
http://server does not exist" although I still type a filename into the file 
entry and it will load it.

I can't do..
quanta http://foo.bar/abc.html
thought - I just get a blank window.

although..
quanta sftp://user@foo.bar/path/to/html/abc.html
DOES work.
Comment 3 András Manţia 2006-01-23 18:10:21 UTC
On Monday 23 January 2006 15:01, Daniel OConnor wrote:
> Hmm, if I put..
> http://server
> in the directory bar I get a popup saying that "The file or folder
> http://server does not exist" although I still type a filename into
> the file entry and it will load it.


Yes, http:// is not browsable (it is not a filesystem).
And yes, Quanta does not seem to open files via http:// even if it is 
passed via the command line. I will look at this.
Comment 4 Daniel O'Connor 2006-01-23 23:27:37 UTC
On Tuesday 24 January 2006 03:40, AndrXXs ManXXia wrote:
> > in the directory bar I get a popup saying that "The file or folder
> > http://server does not exist" although I still type a filename into
> > the file entry and it will load it.
>
> Yes, http:// is not browsable (it is not a filesystem).


Yeah, not being browsable is understandable :)

> And yes, Quanta does not seem to open files via http:// even if it is
> passed via the command line. I will look at this.


Thanks!
Comment 5 András Manţia 2006-01-26 20:00:16 UTC
SVN commit 502619 by amantia:

Sometimes it is enough to check if a file exists and it is readable, there is no need to see if it is writable as well. Alloww opening of read-only remote files, like from http:// .

BUG: 120632

 M  +1 -1      kommander/examples/tutorial/strings.kmdr  
 M  +13 -13    lib/qextfileinfo.cpp  
 M  +4 -3      lib/qextfileinfo.h  
 M  +5 -1      quanta/ChangeLog  
 M  +1 -1      quanta/components/debugger/debuggermanager.cpp  
 M  +3 -3      quanta/components/debugger/pathmapper.cpp  
 M  +1 -1      quanta/components/debugger/pathmapperdialog.cpp  
 M  +2 -2      quanta/dialogs/copyto.cpp  
 M  +1 -1      quanta/project/project.cpp  
 M  +1 -1      quanta/project/projectnewlocal.cpp  
 M  +1 -1      quanta/project/projectupload.cpp  
 M  +4 -4      quanta/src/quanta.cpp  
 M  +1 -1      quanta/src/quantadoc.cpp  
 M  +2 -2      quanta/treeviews/basetreeview.cpp  
 M  +1 -1      quanta/treeviews/projecttreeview.cpp  
 M  +1 -1      quanta/treeviews/structtreeview.cpp  
 M  +1 -1      quanta/treeviews/templatestreeview.cpp  
 M  +1 -1      quanta/utility/quantacommon.cpp  
Comment 6 Daniel O'Connor 2006-01-27 11:40:17 UTC
On Friday 27 January 2006 05:30, AndrXXs ManXXia wrote:
> Sometimes it is enough to check if a file exists and it is readable, there
> is no need to see if it is writable as well. Alloww opening of read-only
> remote files, like from http:// .


What about the HTTP PUT method?
Comment 7 András Manţia 2006-01-27 17:07:13 UTC
If you want saving through http, you should file a wish for the http 
kioslave.
Comment 8 Daniel O'Connor 2006-07-11 02:02:35 UTC
Turns out it works fine.. Duh.
Sorry for the noise (although you have to ignore the file dialog error about "Malformed URL" to save)