https://bugs.kde.org/show_bug.cgi?id=360161
Bug ID: 360161 Summary: Cannot "send to" if current directory is not writeable - should use temporary file location Product: ksnapshot Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: ase...@kde.org Reporter: j...@keelhaul.me.uk If KSnapshot is started in a directory which is not writeable by the current user, it is not possible to use any of the "Send to" options to send the screenshot to another application. Trying to do so gives an error dialogue: KSnapshot was unable to save the image to and messages on stderr: ksnapshot(12038)/default KIO::SimpleJobPrivate::simpleJobInit: Invalid URL: QUrl("") ksnapshot(12038)/default KSnapshotObject::saveTo: KSnapshot was unable to save the m_snapshot to QUrl("") type: "PNG" Reproducible: Always Steps to Reproduce: 1. Start KSnapshot in a directory that does not have write permission. 2. Click "Send To..." and then "Gewnview" 3. Observe error message as above. This is the KSnapshot frameworks version ("ksnapshot 1.0.0"), current Git HEAD = 4c10d80e8. Suspect that the problem is in KSnapshot::urlToOpen(), where it should use QDir::tempPath() as suggested in the API doc of QTemporaryFile::QTemporaryFile(const QString & templateName). -- You are receiving this mail because: You are watching all bug changes.