LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-12-2013, 05:32 AM   #1
LinusStallman
Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Linux Mint 17 MATE
Posts: 270

Rep: Reputation: 14
Question When I run 'gksudo gedit' an 'Untitled Document 1' opens as well.


Hi guys.

When I run 'gksudo gedit' an 'Untitled Document 1' opens [image attached].

Example:
Code:
gksudo gedit /etc/crontab & exit
The same does not happen with Leafpad.

Is this a bug? Has anyone a solution?
Attached Images
File Type: gif Rogue empty file opens in gksudo gedit.gif (13.0 KB, 19 views)

Last edited by LinusStallman; 05-12-2013 at 05:35 AM.
 
Old 05-12-2013, 08:15 AM   #2
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 518
Blog Entries: 3

Rep: Reputation: 55
It happens to me as well, as least on Debian. I always took it as a feature, kind of like emacs' scratch buffer (without ability to evaluate lisp, ofc).
 
Old 05-12-2013, 10:47 AM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
This is the last file opened by root ( or user ). Medit also has that feature.
 
Old 05-12-2013, 01:00 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,810

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
just delete the "untitaled" doc and the "untitaled1" if they are there

but just opining Gedit WILL automatically create a empty doc that you can then write in

if you do not want a new empty doc
then add the file you want to open

Code:
gksudo gedit /etc/crontab
 
Old 05-13-2013, 02:32 AM   #5
LinusStallman
Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Linux Mint 17 MATE
Posts: 270

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by John VV View Post
...
Code:
gksudo gedit /etc/crontab
As stated in my first post - I already run that command.
 
Old 05-14-2013, 03:00 AM   #6
LinusStallman
Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Linux Mint 17 MATE
Posts: 270

Original Poster
Rep: Reputation: 14
Lightbulb

Just checked LMDE - pluma does not do this.
 
  


Reply

Tags
gedit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can gedit open an HTML document in firefox? wit_273 Linux - Software 3 01-03-2013 08:12 PM
iPod document window opens at startup every time. zedfighter Linux - Newbie 3 05-03-2012 08:48 PM
ubuntu 8.04 kde3.? Openoffice always opens a wordprocessor document on kde start darin722 Linux - Desktop 1 10-03-2008 11:36 PM
cannot run gedit as root allasso Linux - Software 9 12-28-2007 06:32 PM
Can't run gedit mariotski Suse/Novell 3 04-16-2007 05:14 AM


All times are GMT -5. The time now is 03:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration