Gedit - disabling "untitled document 1"

Karl Auer kauer at biplane.com.au
Thu Jan 29 22:38:33 UTC 2015


On Thu, 2015-01-29 at 13:09 -0800, rikona wrote:
> > grep -i exec /usr/share/applications/gedit.desktop
> 
> Exec=gedit %U
> Exec=gedit --new-window
> Exec=gedit --new-window

That's what I have, and gedit does not open new windows...

> Is there a way to set up/edit gedit.desktop so it would not open
> "untitled document 1"? If I hand edit it, will it get overwritten?

Take a backup copy of /usr/share/applications/gedit.desktop. Then edit
the original and replace the second and third "Exec" lines with copies
of the first (so they all say "Exec=gedit %U"). I'm not sure how
konqueror works - it might be an idea to restart KDE after making the
change.

That might be all you need as a workaround. If there is no change, then
the likeliest cause, though not definitely the cause, is that konqueror
is not using that .desktop file, and you will need to find out which
desktop file it IS using. That's a different bridge, to be crossed if
you get to it :-)

Please post the full contents of /usr/share/applications/gedit.desktop
(it's only 20-odd lines).

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882






More information about the ubuntu-users mailing list