PDA

View Full Version : [SOLVED] Desktop doesn't work



brunoproduit
February 1st, 2012, 04:19 PM
Hello,

I have a problem with my desktop folder. When i try to click/rightclick on my desktop it just does not respond.
I tried to change the owner/rights of the folder using "Chown" and "Chmod" but still nothing
The folder "Desktop" exist and is at the right place, but it appears to be a common folder not related to the real desktop. I am currently using ubuntu 10.04.

i hope this is not a repost,
any help would be greatly appreciated!

Paddy Landau
February 1st, 2012, 08:03 PM
You shouldn't have to chmod or chown your desktop!

Please open a terminal (press Ctrl-Alt-T) and type the following two commands. Post the results here (between
and please).

ls -l /home
ls -l ~Thanks

brunoproduit
February 1st, 2012, 08:48 PM
Hi,

Thanks for your answer,

I think thats what you need




drwxr-xr-x 99 bruno bruno 12288 2012-02-01 18:55 bruno

drwxrwxrwx 2 bruno bruno 4096 2012-02-01 15:48 Desktop


bruno is me as you can see.
Thanks.

Paddy Landau
February 2nd, 2012, 11:09 AM
Hmm, everything looks correct. I am most puzzled as to why a right-click on your desktop does nothing.

What version of Ubuntu did you install?

brunoproduit
February 2nd, 2012, 12:24 PM
Hi yes as you see the folder "desktop" is there but it seems to be a useless folder which is named desktop with no relation to the real thing.
My Ubuntu version is 10.04 (lucid lynx) the long term support version of Ubuntu.
What should i do? create another desktop? is that even possible?
Thanks

Paddy Landau
February 2nd, 2012, 02:20 PM
Hang about, I've just realised that the second command showed only your Desktop, and nothing else -- no Pictures, Documents, Videos, Music, anything.

That is most bizarre!

Please enter the following three commands, and cut-and-paste the results here (each one within its own separate
and please).

echo ${USER}
ls -lq ~
ls -lqA ~

brunoproduit
February 2nd, 2012, 02:45 PM
Hello,
It does have music images etc. i just thought this wasn't needed for you i just took out desktop.

for your first command it just gives me



bruno@bruno-laptop:~$ echo ${USER}
bruno


bruno@bruno-laptop:~$ ls -lq ~
drwxrwxrwx 2 bruno bruno 4096 2012-02-01 22:19 Desktop
drwxr-xr-x 9 bruno bruno 4096 2012-01-23 21:59 Documents
drwxr-xr-x 2 bruno bruno 4096 2012-01-30 16:36 Downloads
drwxr-xr-x 6 bruno bruno 20480 2012-01-30 15:55 Music
drwxr-xr-x 13 bruno bruno 4096 2012-02-01 21:02 other
drwxr-xr-x 6 bruno bruno 4096 2012-01-29 00:22 Pictures
drwxr-xr-x 2 bruno bruno 4096 2010-06-27 11:16 Public
drwxr-xr-x 2 bruno bruno 4096 2012-01-29 00:13 Templates
drwxrwxr-x 2 bruno bruno 4096 2010-08-31 16:56 Ubuntu One
drwxr-xr-x 2 bruno bruno 4096 2012-01-29 00:22 Videos


everything looks good


I took out all the known unnessesary programs

Paddy Landau
February 2nd, 2012, 03:01 PM
All right, that looks better. I used "-q" in the option in case there was some funny character in the folder name.

I would recommend you reset the Desktop permissions, although this is not necessary:

chmod go-w ~/DesktopIf you right-click the desktop itself, nothing happens. Is that correct?

What happens if you right-click the Desktop folder in Nautilus? What happens if you right-click any other folder in Nautilus?

In Nautilus, navigate to your Desktop. Right-click in the empty area to create a new empty document (Create Document > Empty File). Does that work? If it does work, try right-clicking the new, empty file on your desktop to see if anything happens.

brunoproduit
February 2nd, 2012, 03:11 PM
Hello,

I've done your command, but nothing happens it changes unfortunately nothing...
i really don't know.
I already tried to create files with nautilus and I've done it another time after the command.
the file is created and you can deal with it as normal but only in nautilus as desktop would be an usual folder,
only thing is that nothing appears on the real desktop (not in nautilus) and it still doesn't have a reaction.

Thanks

Paddy Landau
February 2nd, 2012, 03:39 PM
It seems that your Linux has stopped seeing the Desktop folder as the desktop. When did that start?

Please view the following file (you can use the usual text editor) and paste the contents here.

~/.config/user-dirs.dirs

brunoproduit
February 2nd, 2012, 03:58 PM
That's the file you want.


# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

Thanks

brunoproduit
February 2nd, 2012, 04:03 PM
That's the file you want.
Code:
# This file is written by xdg-user-dirs-update # If you want to change or add directories, just edit the line you're # interested in. All local changes will be retained on the next run # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. # XDG_DESKTOP_DIR="$HOME/Desktop" XDG_DOWNLOAD_DIR="$HOME/Downloads" XDG_TEMPLATES_DIR="$HOME/Templates" XDG_PUBLICSHARE_DIR="$HOME/Public" XDG_DOCUMENTS_DIR="$HOME/Documents" XDG_MUSIC_DIR="$HOME/Music" XDG_PICTURES_DIR="$HOME/Pictures" XDG_VIDEOS_DIR="$HOME/Videos"
Thanks

N00b-un-2
February 2nd, 2012, 04:04 PM
your user-dirs.dir file looks correct. out of curiosity are you running a dual boot? I found out the hard way once that linking any file on windows to your ~/Desktop folder on the Linux side will cause a whole slew of problems.
Aside from that, the only other thing I can think of would be an issue with nautilus itself. You may try reinstalling nautilus.

brunoproduit
February 2nd, 2012, 04:09 PM
Sorry for the double post.

I am actually not using a dual boot with anything, althought i would want to, but my computer has not enough
space to think about it.
Reinstalling nautilus would be a good idea. can i do it with apt-get install, or how should i do it?

Paddy Landau
February 2nd, 2012, 04:30 PM
Reinstalling Nautilus won't do anything unless the programs have been corrupted. To do so:


Reboot into recovery mode: Restart; as the computer restarts, hold down the Shift key until the Grub menu displays; choose the second option (Recovery Mode); scroll down to Drop to root shell prompt.
Enter the following two commands. Warning: I have not tried them, so I cannot guarantee that they will work! The last two items (in italic) may not be necessary for you, though it can't hurt to install them.
apt-get purge nautilus
apt-get install nautilus gnome-session ubuntu-desktop nautilus-image-converter nautilus-shareThen restart.

But, I would be tempted to try something else first. Remove the settings that Nautilus has generated, in case that is what is wrong. The following command will remove the settings but place them in old-nautilus just in case you need them again.

mv ~/.gconf/apps/nautilus ~/old-nautilusThen log out and in again (it's not necessary to restart) to see what happens. If it's all messed up, use the following command to restore the settings.

rm -R ~/.gconf/apps/nautilus
mv ~/old-nautilus ~/.gconf/apps/nautilusThen log out and in again.

Sorry we can't be more helpful. This is a strange situation that I have not come across before.

brunoproduit
February 2nd, 2012, 04:52 PM
Hello I tried

mv ~/.gconf/apps/nautilus ~/old-nautilus
and restarted my computer and it fixed everything!
I obviously then didn't try the other commands.
Thank you so much for your help and your time!
finally working!

Paddy Landau
February 2nd, 2012, 06:19 PM
Fantastic. Have fun!

Paddy Landau
February 2nd, 2012, 06:19 PM
Oh, yes, you can delete the old-nautilus folder now.