Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GNOME3] How to set the default file manager?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
tassilo80
Guru
Guru


Joined: 26 Mar 2003
Posts: 346
Location: Koblenz, Germany

PostPosted: Mon May 09, 2011 8:13 pm    Post subject: [GNOME3] How to set the default file manager? Reply with quote

Hi all,

I use GNOME3 from the gnome overlay. In GNOME apps (the gnome-shell, empathy, ...), nautilus is chosen as default file manager. However, when some other apps like chromium or skype spawn a file manager (e.g., for opening the file downloads folder), thunar is opened instead of nautilus. Also, xdg-open ~ opens my HOME in thunar.

So how can I set the default file manager for GNOME3 sessions?

Thanks,
Tassilo
Back to top
View user's profile Send private message
Arkhelion
Apprentice
Apprentice


Joined: 07 Sep 2010
Posts: 151
Location: France

PostPosted: Tue May 10, 2011 9:58 am    Post subject: Reply with quote

Hello,

I'd try in gconf-editor (launched as user)
Go to desktop > gnome > applications > component_viewer

In the key named 'exec', you should have the value 'nautilus %s' (without quotes)
_________________
Arkhelion
Back to top
View user's profile Send private message
tassilo80
Guru
Guru


Joined: 26 Mar 2003
Posts: 346
Location: Koblenz, Germany

PostPosted: Tue May 10, 2011 10:22 am    Post subject: Reply with quote

Arkhelion wrote:
I'd try in gconf-editor (launched as user)
Go to desktop > gnome > applications > component_viewer

In the key named 'exec', you should have the value 'nautilus %s' (without quotes)


That's already the current value and all GNOME apps spawning a file manager fire up nautilus. I guess, none-GNOME apps simply use xdg-open <directory>, so the question is how to configure that.

Bye,
Tassilo
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Tue May 10, 2011 3:54 pm    Post subject: Reply with quote

Have a look to /usr/share/applications/defaults.list, ~/.local/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
tassilo80
Guru
Guru


Joined: 26 Mar 2003
Posts: 346
Location: Koblenz, Germany

PostPosted: Tue May 10, 2011 6:13 pm    Post subject: [SOLVED][GNOME3] How to set the default file manager? Reply with quote

bi3l wrote:
Have a look to /usr/share/applications/defaults.list, ~/.local/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list.


That's strange. I added an entry
Code:
inode/directory=nautilus.desktop
to the default applications section in ~/.local/share/applications/mimeapps.list. Then, xdg-open ~ fired up nautilus.

So far, so good. But then I tried to understand that system a bit. So I deleted that entry and added
Code:
inode/directory=thunar.desktop
to ~/.local/share/applications/defaults.list. Now, on the command line I get:

Code:
$ xdg-mime query filetype ~
inode/directory
$ xdg-mime query default inode/directory
thunar.desktop
$ # Ok, so thunar seems to be the default, now
$ xdg-open ~
$ # Now my home is still opened in nautilus?!?


The same happens if you don't edit the files directly but use the xdg-mime tool.

Code:
$ xdg-mime default thunar.desktop inode/directory 
$ xdg-open ~       # still nautilus, defaults.list modified


Well, anyway, my original problem is solved. Nautilus is used as file manager. But if someone could provide a pointer to some reference on how that XDG stuff is supposed to work, it would be great.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum