You are not logged in.

#1 2019-04-29 11:44:06

assertion9
Banned
Registered: 2019-04-13
Posts: 50

[SOLVED] GNOME applications refuses to open as defaults

I'm on i3wm, following the official instructions I  installed xdg-utils and perl-file-mimeinfo, selected default application with both.

As the default file manager, I want to use Nautilus and as the editor gedit. Clicking "Open containing folder" in firefox does nothing, Nautilus does not open, as well as clicking on the text file in Nautilus, it gives the error Could Not Display "filename.txt". There is no application installed for "plain text document" file.

However, the "Open containing folder" successfully opens Nautilus if it is already running, so does Nautilus with gedit.

I found that some file managers should be started as daemons in advance to make it work like pcmanfm  . But Nautilus can't be run as a daemon, at least I didn't found option in official manual

It also works perfectly from the console, respectively, opens the directory in nautilus and any text file in gedit

xdg-open Public
xdg-open Public/newfile.txt

"Open containing folder" in firefox works with default ranger file manager and gnome-terminal, but I use urxvt, and removing gnome-terminal causes firefox again not opening file.

Last edited by assertion9 (2019-04-30 19:58:25)

Offline

#2 2019-04-30 19:57:42

assertion9
Banned
Registered: 2019-04-13
Posts: 50

Re: [SOLVED] GNOME applications refuses to open as defaults

As it says in gapplication GNOME page

gapplication can be used to start applications that have DBusActivatable set to true in their .desktop files and can be used to send messages to already-running instances of other applications.

Solved by toggling option DBusActivatable=false in files

/usr/share/applications/org.gnome.Nautilus.desktop
/usr/share/applications/org.gnome.gedit.desktop

Last edited by assertion9 (2019-05-01 06:22:53)

Offline

Board footer

Powered by FluxBB