Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A How to change the default app for opening directories in Gnome?

I somehow managed to unknowingly change the default app for opening directories on my laptop. E.g. when I use the option open containing folder in a program like Evince, my editor (vscode) opens u...

2 answers  ·  posted 9mo ago by mr Tsjolder‭  ·  last activity 9mo ago by matthewsnyder‭

Question gnome
#3: Post edited by user avatar mr Tsjolder‭ · 2023-08-14T08:16:30Z (9 months ago)
additional information
  • I somehow managed to unknowingly change the default app for opening directories on my laptop.
  • E.g. when I use the option _open containing folder_ in a program like Evince, my editor (vscode) opens up instead of my file manager (Nautilus).
  • I have been experiencing this for some months now and it is not that much of a problem, but every time I stumble upon it I tend to start looking for solutions and every time I am unable to find a solution.
  • I am using Gnome and I know how to change the default apps for web, mail, calendar, music, video and photos in settings.
  • I also checked Gnome tweaks and dconf editor, but searches for _directory_, _folder_ and _default_ do not seem to list any entries for default directory settings.
  • Does anybody know how to change the default app for opening directories in Gnome or where these settings could be stored?
  • I somehow managed to unknowingly change the default app for opening directories on my laptop.
  • E.g. when I use the option _open containing folder_ in a program like Evince, my editor (vscode) opens up instead of my file manager (Nautilus).
  • I have been experiencing this for some months now and it is not that much of a problem, but every time I stumble upon it I tend to start looking for solutions and every time I am unable to find a solution.
  • I am using Gnome and I know how to change the default apps for web, mail, calendar, music, video and photos in settings.
  • I also checked Gnome tweaks and dconf editor, but searches for _directory_, _folder_ and _default_ do not seem to list any entries for default directory settings.
  • Does anybody know how to change the default app for opening directories in Gnome or where these settings could be stored?
  • ---
  • ### Further Details
  • The [answer](https://linux.codidact.com/posts/289332/289354#answer-289354) of matthewsnyder seems to point in the right direction.
  • When opening a directory with `xdg-open`, vscode is started instead of Nautilus.
  • However, when running
  • ```
  • xdg-mime query default inode/directory
  • ```
  • the output indicates that Nautilus should be the default app for opening directories again.
  • Even though `xdg-open` clearly does not use Nautilus.
  • I also tried running in debug mode using
  • ```
  • XDG_UTILS_DEBUG_LEVEL=10 xdg-open ~
  • ```
  • but this only provides the following additional information: _Selected DE gnome3_
#2: Post edited by user avatar mr Tsjolder‭ · 2023-08-11T11:27:41Z (9 months ago)
broaden question + update title
  • What is the default app for opening directories in Gnome?
  • How to change the default app for opening directories in Gnome?
  • I somehow managed to unknowingly change the default app for opening directories on my laptop.
  • E.g. when I use the option _open containing folder_ in a program like Evince, my editor (vscode) opens up instead of my file manager (Nautilus).
  • I have been experiencing this for some months now and it is not that much of a problem, but every time I stumble upon it I tend to start looking for solutions and every time I am unable to find a solution.
  • I am using Gnome and I know how to change the default apps for web, mail, calendar, music, video and photos in settings.
  • I also checked Gnome tweaks and dconf editor, but searches for _directory_, _folder_ and _default_ do not seem to list any entries for default directory settings.
  • Does anybody know how to change the default app for opening directories in Gnome?
  • I somehow managed to unknowingly change the default app for opening directories on my laptop.
  • E.g. when I use the option _open containing folder_ in a program like Evince, my editor (vscode) opens up instead of my file manager (Nautilus).
  • I have been experiencing this for some months now and it is not that much of a problem, but every time I stumble upon it I tend to start looking for solutions and every time I am unable to find a solution.
  • I am using Gnome and I know how to change the default apps for web, mail, calendar, music, video and photos in settings.
  • I also checked Gnome tweaks and dconf editor, but searches for _directory_, _folder_ and _default_ do not seem to list any entries for default directory settings.
  • Does anybody know how to change the default app for opening directories in Gnome or where these settings could be stored?
#1: Initial revision by user avatar mr Tsjolder‭ · 2023-08-11T10:08:27Z (9 months ago)
What is the default app for opening directories in Gnome?
I somehow managed to unknowingly change the default app for opening directories on my laptop.
E.g. when I use the option _open containing folder_ in a program like Evince, my editor (vscode) opens up instead of my file manager (Nautilus).

I have been experiencing this for some months now and it is not that much of a problem, but every time I stumble upon it I tend to start looking for solutions and every time I am unable to find a solution.

I am using Gnome and I know how to change the default apps for web, mail, calendar, music, video and photos in settings.
I also checked Gnome tweaks and dconf editor, but searches for _directory_, _folder_ and _default_ do not seem to list any entries for default directory settings.

Does anybody know how to change the default app for opening directories in Gnome?