Bug 152826 - kwrite should notify about non-existing file specified on command line
Summary: kwrite should notify about non-existing file specified on command line
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 14:52 UTC by Reindl Harald
Modified: 2014-01-26 21:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reindl Harald 2007-11-24 14:52:05 UTC
Version:           4.5.8 (using KDE KDE 3.5.8)
Installed from:    Fedora RPMs
OS:                Linux

kwrite has a bug that can make crazy beginners
See also: https://bugzilla.redhat.com/show_bug.cgi?id=397101

kwrite /etc/this-does-not-exist.txt
Says nothing, opens an empty editor an may save the file
But if you have misstyped the filename you dont know this

kwrite /boot/grub/grub.conf
Opens as normal user an empty editor instead to 
say there are no permissions

Do not know if this is a kde bug or only in kde of fedora, but sometimes its a
pain - In the first case the apllication should make a request to create the non
existing file or cancel.

In the second case it should tell the user that the file exists but he has no
permissions
Comment 1 Thomas Friedrichsmeier 2007-12-14 16:03:18 UTC
The second part (trying to open a file with no read permissions) is fixed in KDE 4 (see bug #142856).

Regarding the first part (non-existent file specified on command line), I guess we could show an information dialog (with a "don't show again" box) in this case, to make life easier for the unexpecting newbie. But that will require new strings, so it's not before KDE 4.1. Also it's a (valid) wish, not a bug.
Comment 2 Christoph Cullmann 2014-01-25 23:42:55 UTC
KWrite/Kate now show a "new file" message inside the view.