LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2011, 11:56 PM   #1
VikashKrChoudhary
LQ Newbie
 
Registered: Nov 2011
Location: Bangalore,India
Posts: 2

Rep: Reputation: Disabled
Question Related to creation of directory using gedit


Hello Good Morning,
Actually my problem is that when i going to create a directory using this command : sudo gedit/var/www/test.php then it shows this message. So can you please help me why this would be happened....please...

Warning Message:
(gedit:2326): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
 
Old 11-08-2011, 12:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by VikashKrChoudhary View Post
(gedit:2326): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
Gedit tries to update the list of recently opened files and the file or any leading directories up to it do not exist. Instead of "fixing" this error I suggest you change your development habit and set up your personal repository using RCS, CVS, SVN, Mercurial, GIT or whatever else versioning system you fancy. Store changes there and only checkout and 'sudo cp' files to /var/www when you're certain it works. This way you don't have to run applications as root unnecessarily and can revert if something doesn't work.
 
Old 11-08-2011, 12:38 AM   #3
VikashKrChoudhary
LQ Newbie
 
Registered: Nov 2011
Location: Bangalore,India
Posts: 2

Original Poster
Rep: Reputation: Disabled
Exclamation Create directory using gedit command

Yes,its not necessary that we do every thing using root but when we going to create a directory without root using gedit then its create a problem related to saving of file. Then what should i do???
 
Old 11-08-2011, 12:41 AM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
From https://bugs.launchpad.net/ubuntu/+s...it/+bug/776678
Quote:
The workaround of:

$ sudo mkdir -p /root/.local/share

does work. However, a user shouldn't need to do that to run '$ gksudo gedit'.
Beyond this workaround, I haven't been able to find another answer to this.
 
Old 11-10-2011, 06:26 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by VikashKrChoudhary View Post
Yes,its not necessary that we do every thing using root but when we going to create a directory without root using gedit then its create a problem related to saving of file. Then what should i do???
Try using Sudo? To create directories with ownership set see for example 'install' as in 'sudo install -m 0755 -o root -g apache -d /var/www/directoryname'. 'man install' for explanation of options.


Quote:
Originally Posted by mark_alfred View Post
Beyond this workaround, I haven't been able to find another answer to this.
The error isn't about Gedit IMHO but people using the wrong tool to get the job done.
 
  


Reply



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
Gnome 3, Gedit 3.0.5, when I open file with gedit, it created one more unneeded tab Mr. Alex Linux - Software 1 06-18-2011 07:58 AM
creation of a private directory? sabahh Linux - Newbie 8 09-17-2009 07:21 AM
verify directory creation shifter Programming 5 06-28-2007 02:28 AM
Azureus directory creation cleff Linux - Software 4 08-21-2004 10:41 PM
user creation related question Menestrel Linux - Newbie 2 05-15-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration