Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Linux Mint with "Gnome Classic", I guess it's Gnome 2. I am currently using 3 workspaces, and I have nautilus handling my desktop.

The problem is that my desktop is overloaded with files. And I prefer not having to store them in directories, as that would make one more window to open before accessing the file, I already have too many open.

Can I change the "Desktop" directory for each workspace? Or maybe extend the desktop on the 3 workspaces, so that I can move each icon on the workspace I need?

Do I have to change desktop managers? Or let another file browser than nautilus do the job (how would I do that?) ?

Thanks. (and btw I'm new to using linux, if there's a better approach, please do say so)

EDIT: This is what env | grep XDG gave me (nothing about a desktop):

jad@jad-PC ~ $ env | grep XDG

I also tried env | grep Desktop, which gave me nothing.

share|improve this question

I don't think there's a less hackish solution involving Nautilus than this one:

As far as I can see, Nautilus displays what XDG tells it your desktop is (see env | grep XDG; but let's assume it's ~/Desktop) and there seems to be now way to change this setting without restarting Nautilus.

You can (probably, untested) change what ~/Desktop on changing your workspace. What I have in mind is roughly the following, replacing the Desktop folder with a symlink:

  • Create shortcuts for changing the workspaces, i.e. Ctrl+1 executes ~/bin/switch-to-workspace-one.sh,
  • which would be a shell script you write, that:
    1. changes the symlink Desktop to, say, ~/Workspaces/One and
    2. calls wmctrl to make metacity (the window manager) change to workspace 1

(...analogous for 2 and 3).. I am completely uncertain whether this might have bad consequences by violating assumptions of other programs, since it's a fairly non-standard hack. (There would be more things to take care of, e.g. switching the symlink back to Workspace one on logout (or on boot)...)

But since GNOME2 has had its best days, it might be advisable to look for an alternative, unfortunately, I don't know if other desktop managers can do this. (I had hopes for XFCE, but it seems to be impossible.)

(XMonad has "topic spaces" but this only affects default directories spawned programs find themselves in etc, there are no icons at all.)

share|improve this answer
Thanks for the reply. What if I didn't use Nautilus? (I have no problem switching to Cinnamon or anything, maybe it's not even necessary). And what about Gnome 3? I guess hacky solutions will be my last resort, but I like it :) – jadkik94 May 18 '12 at 14:20
I think I remember KDE4 being able to do that (at least using folder view widgets and activities). But that's quite a leap from GNOME2/3. – sr_ May 18 '12 at 14:23
Oh, and see my edit, the commands you suggested did not give me the expected output... And do you know anything about Cinnamon extensions? It's linuxmint's so maybe I should be looking that way? – jadkik94 May 18 '12 at 14:27
You are right, KDE is not an option. Thanks anyway. – jadkik94 May 18 '12 at 14:28
I suppose it's not important what XDG thinks as long as ~/Desktop is what Nautilus displays. – sr_ May 18 '12 at 14:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.