Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: I can't save the file in gedit

  1. #11
    Join Date
    May 2007
    Beans
    314
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I can't save the file in gedit

    Quote Originally Posted by samlabs821 View Post
    I am tryning to save it to Desktop(home/samlabs821/Desktop) but folder name is 'Рабочий стол' in russian
    If you have it (the name of your Desktop folder) in Russian the way to it must be:
    /home/samalabs821/Рабочий стол
    What's the output of:
    ls /home/samalabs821/Рабочий\ стол
    Can you cd to that folder?
    Does
    ls /home/samalabs821
    show a "Рабочий стол" directory?

  2. #12
    Join Date
    Feb 2008
    Location
    Lancashire, UK
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I can't save the file in gedit

    Quote Originally Posted by samlabs821 View Post
    I am tryning to save it to Desktop(home/samlabs821/Desktop) but folder name is 'Рабочий стол' in russian
    Which folder is in Russian? You said you couldn't save a file to your desktop - is it literally called "Desktop" or is it actually called something else? Translation may be obscuring the real problem.

    Edit: I see this point has already been raised while I was busy typing

  3. #13
    Join Date
    Nov 2009
    Location
    Kazakhstan, Shymkent
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I can't save the file in gedit

    Quote Originally Posted by AlexDudko View Post
    If you have it (the name of your Desktop folder) in Russian the way to it must be:

    What's the output of:

    Can you cd to that folder?
    Does

    show a "Рабочий стол" directory?
    yes it show but i removed this directory and created Desktop directory instead...

    i noticed that print button is also disabled in gedit... it means the problem in gedit??

    But when i run gedit with sudo there is no problem...

  4. #14
    Join Date
    May 2007
    Beans
    314
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I can't save the file in gedit

    Desktop stands for Russian "Рабочий стол", this is due to Russian system language, which made all automatically created folders in user's home directory be in Russian.

    Didn't you create the Desktop folder in sudo mode?
    Try to
    sudo chown samalabs821:samalabs821 /home/samalabs821/Desktop

  5. #15
    Join Date
    Apr 2009
    Beans
    1,173

    Re: I can't save the file in gedit

    Quote Originally Posted by samlabs821 View Post
    yes it show but i removed this directory and created Desktop directory instead...
    What is the output from ls -l /home/samlabs821 ? Did you create Desktop or desktop?

  6. #16
    Join Date
    Nov 2009
    Location
    Kazakhstan, Shymkent
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I can't save the file in gedit

    Quote Originally Posted by StuartN View Post
    What is the output from ls -l /home/samlabs821 ? Did you create Desktop or desktop?
    -rwxr-xr-x 1 samlabs821 samlabs821 731 2010-05-15 00:52 autorun.inf
    -rwxr-xr-x 1 samlabs821 samlabs821 114440 2010-05-14 09:34 db.sql
    drwxrwxrwx 2 samlabs821 samlabs821 4096 2010-05-15 01:56 Desktop
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-15 07:23 Distr
    -rwxr-xr-x 1 samlabs821 samlabs821 197521410 2009-10-31 15:13 eclipse-jee-galileo-SR1-linux-gtk.tar.gz
    -rw-r--r-- 1 samlabs821 samlabs821 179 2010-05-14 03:06 examples.desktop
    drwx------ 2 samlabs821 samlabs821 4096 2010-05-14 18:46 fbreader
    drwx------ 2 samlabs821 samlabs821 4096 2010-05-14 22:54 Frank Lampard
    -rw-r--r-- 1 samlabs821 samlabs821 11 2010-05-15 03:30 hjg.txt
    drwx------ 4 samlabs821 samlabs821 4096 2010-03-10 09:24 javaRSS
    -rwxr-xr-x 1 samlabs821 samlabs821 133614094 2009-05-23 20:18 jboss-5.1.0.GA-jdk6.zip
    -rwxr-xr-x 1 samlabs821 samlabs821 117266344 2009-10-29 11:08 jboss-seam-2.2.0.GA.zip
    -rwxr-xr-x 1 samlabs821 samlabs821 84738557 2010-03-06 18:28 jdk-6u18-linux-i586.bin
    -rwxr-xr-x 1 samlabs821 samlabs821 16728640 2010-05-14 09:35 lib.zip
    drwx------ 6 samlabs821 samlabs821 4096 2010-05-14 22:55 need
    -rwxr-xr-x 1 samlabs821 samlabs821 213536768 2009-05-06 00:20 netbeans-6.7_m3-linux.sh
    -rw-r--r-- 1 samlabs821 samlabs821 0 2010-05-15 02:40 new file
    drwx------ 8 samlabs821 samlabs821 4096 2010-05-06 15:01 Sam
    drwx------ 2 samlabs821 samlabs821 4096 2010-05-14 22:52 savira
    drwx------ 2 samlabs821 samlabs821 4096 2010-05-11 23:28 sgpkjmr
    -rwxr-xr-x 1 samlabs821 samlabs821 19944012 2009-11-02 10:19 skype-ubuntu-intrepid_2.1.0.47-1_i386.deb
    -rwxr-xr-x 1 samlabs821 samlabs821 102081998 2010-03-06 18:37 sun-j2sdk1.6_1.6.0+update18_i386.deb
    -rwxr-xr-x 1 samlabs821 samlabs821 792122 2010-05-14 09:41 ubuntu-tweak_0.5.4.1-1_all.deb
    -rw-r--r-- 1 samlabs821 samlabs821 8 2010-05-14 04:26 Unsaved Document 1
    drwx------ 20 samlabs821 samlabs821 4096 2010-05-14 08:40 workspace_b
    -rwxr-xr-x 1 samlabs821 samlabs821 59209971 2009-05-06 02:07 xampp-linux-1.7.1.tar.gz
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Видео
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Документы
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Загрузки
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Картинки
    drwx------ 3 samlabs821 samlabs821 4096 2010-05-14 22:58 Либрусек
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Музыка
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Общедоступные
    drwxr-xr-x 2 samlabs821 samlabs821 4096 2010-05-14 03:10 Шаблоны

  7. #17
    Join Date
    Apr 2009
    Beans
    1,173

    Re: I can't save the file in gedit

    Quote Originally Posted by samlabs821 View Post
    drwxrwxrwx 2 samlabs821 samlabs821 4096 2010-05-15 01:56 Desktop
    Clearly there is an entry "Desktop" in /home/samlabs821 and it is a directory and it is owned by samlabs821 with rwx permissions, so it should be possible to save the file - unless there is a file within Desktop that is not (over)writable.

    Previously this appeared not to exist:
    Quote Originally Posted by samlabs821 View Post
    Code:
    ls -ld /home/samlabs821/Desktop/
    ls: cannot access /home/samlabs821/Desktop/: No such file or directory

  8. #18
    Join Date
    Nov 2009
    Location
    Kazakhstan, Shymkent
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I can't save the file in gedit

    Quote Originally Posted by StuartN View Post
    Clearly there is an entry "Desktop" in /home/samlabs821 and it is a directory and it is owned by samlabs821 with rwx permissions, so it should be possible to save the file - unless there is a file within Desktop that is not (over)writable.

    Previously this appeared not to exist:

    then what should I do?

  9. #19
    Join Date
    Nov 2009
    Location
    Kazakhstan, Shymkent
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I can't save the file in gedit

    Code:
    vim /home/samlabs821/Desktop/gedit.desktop
    
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Name=gedit
    GenericName=Text Editor
    Comment=Edit text files
    Exec=gedit %U
    Terminal=false
    Type=Application
    StartupNotify=true
    MimeType=text/plain;
    Icon=accessories-text-editor
    Categories=GNOME;GTK;Utility;TextEditor;
    X-GNOME-DocPath=gedit/gedit.xml
    X-GNOME-FullName=gedit Text Editor
    X-GNOME-Bugzilla-Bugzilla=GNOME
    X-GNOME-Bugzilla-Product=gedit
    X-GNOME-Bugzilla-Component=general
    X-GNOME-Bugzilla-Version=2.30.0
    X-GNOME-Bugzilla-ExtraInfoScript=/usr/share/gedit-2/gedit-bugreport
    X-Ubuntu-Gettext-Domain=gedit

  10. #20
    Join Date
    Apr 2009
    Beans
    1,173

    Re: I can't save the file in gedit

    Quote Originally Posted by samlabs821 View Post
    then what should I do?
    I assumed you must have created the directory since staring this thread - if not, then I do not understand the output from both commands. Try this:

    Code:
    whoami
    ls -ld /home/samlabs821
    ls -l /home/samlabs821
    ls -ld /home/samlabs821/Desktop
    ls -l /home/samlabs821/Desktop
    echo "Some text" > /home/samlabs821/Desktop/temp.txt

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •