Summary: | "Remote file not accepted" dialog shown when try to open/save files | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Raghu <raghugs> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.5 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Raghu
2005-05-12 09:58:32 UTC
Well, I tested with amarok and it works correctly. For konsole you're right. But it's not a media:/ bug, more a problem coming from konsole ignoring "network transparency" in this case (you can't save using fish:// either). Hence why it's more a konsole bug. If you experience the same thing for other applications, you'll have to fill bugs on a per application basis. Hmmm... maybe the report title should be changed to address only konsole? I let this decision to konsole maintainers... see i not only mentioned Konsole but Nautun, Amarok, Kaffeine, does all these apps don't support network transparency? if yes then i am must open a dozen of bugs then :-( Some applications, especially the media players, can refuse to open/save non-local files, since streaming from network isn't supported by KIO. The problem here is that those apps don't fully resolve the URL into mostLocalWhatever (can't remember the correct name) before trying to save. SVN commit 418782 by hindenburg: Use mostLocalURL for saving history; doesn't work yet as mostLocalURL doesn't work for non-existing files yet. CCBUG: 105513 M +7 -2 konsole.cpp --- trunk/KDE/kdebase/konsole/konsole/konsole.cpp #418781:418782 @@ -128,6 +128,7 @@ #include <kparts/componentfactory.h> #include <kcharsets.h> #include <kcolordialog.h> +#include <kio/netaccess.h> #include "konsole.h" #include <netwm.h> @@ -3766,9 +3767,13 @@ void Konsole::slotSaveHistory() { - KURL url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History")); - if( url.isEmpty()) + // FIXME - mostLocalURL can't handle non-existing files yet, so this + // code doesn't work. + KURL s_url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History")); + if( s_url.isEmpty()) return; + KURL url = KIO::NetAccess::mostLocalURL( s_url, 0 ); + if( !url.isLocalFile() ) { KMessageBox::sorry(this, i18n("This is not a local file.\n")); return; Fixed this some time ago in KDE 4. Saving history to a remote or local location using KIO now works. |