Cannot set default application for xdg-open
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am trying to make gthumb the default when opening png files from the terminal
$ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png
I created this symlink:
$ ls -l ~/.gnome/apps/gthumb.desktop
lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb
I expect xdg-mime query default image/png
to return gthumb
. Instead, it says:
$ xdg-mime query default image/png
eog.desktop
Why doesn't setting default have the effect I expect?
xdg xdg-open
add a comment |Â
up vote
0
down vote
favorite
I am trying to make gthumb the default when opening png files from the terminal
$ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png
I created this symlink:
$ ls -l ~/.gnome/apps/gthumb.desktop
lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb
I expect xdg-mime query default image/png
to return gthumb
. Instead, it says:
$ xdg-mime query default image/png
eog.desktop
Why doesn't setting default have the effect I expect?
xdg xdg-open
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to make gthumb the default when opening png files from the terminal
$ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png
I created this symlink:
$ ls -l ~/.gnome/apps/gthumb.desktop
lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb
I expect xdg-mime query default image/png
to return gthumb
. Instead, it says:
$ xdg-mime query default image/png
eog.desktop
Why doesn't setting default have the effect I expect?
xdg xdg-open
I am trying to make gthumb the default when opening png files from the terminal
$ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png
I created this symlink:
$ ls -l ~/.gnome/apps/gthumb.desktop
lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb
I expect xdg-mime query default image/png
to return gthumb
. Instead, it says:
$ xdg-mime query default image/png
eog.desktop
Why doesn't setting default have the effect I expect?
xdg xdg-open
asked Jun 27 at 8:43
Gauthier
415518
415518
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL
helped:
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop
image/png
make_default_kde: No kde runtime detected
make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
Updating /home/gauthier/.local/share/applications/mimeapps.list
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
Checking /home/gauthier/.config/mimeapps.list
eog.desktop
The mimeapps.list
used for setting vs reading defaults is not the same.
Solution (thanks to a comment here):
rm ~/.config/mimeapps.list
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL
helped:
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop
image/png
make_default_kde: No kde runtime detected
make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
Updating /home/gauthier/.local/share/applications/mimeapps.list
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
Checking /home/gauthier/.config/mimeapps.list
eog.desktop
The mimeapps.list
used for setting vs reading defaults is not the same.
Solution (thanks to a comment here):
rm ~/.config/mimeapps.list
add a comment |Â
up vote
1
down vote
Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL
helped:
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop
image/png
make_default_kde: No kde runtime detected
make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
Updating /home/gauthier/.local/share/applications/mimeapps.list
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
Checking /home/gauthier/.config/mimeapps.list
eog.desktop
The mimeapps.list
used for setting vs reading defaults is not the same.
Solution (thanks to a comment here):
rm ~/.config/mimeapps.list
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL
helped:
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop
image/png
make_default_kde: No kde runtime detected
make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
Updating /home/gauthier/.local/share/applications/mimeapps.list
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
Checking /home/gauthier/.config/mimeapps.list
eog.desktop
The mimeapps.list
used for setting vs reading defaults is not the same.
Solution (thanks to a comment here):
rm ~/.config/mimeapps.list
Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL
helped:
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop
image/png
make_default_kde: No kde runtime detected
make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
Updating /home/gauthier/.local/share/applications/mimeapps.list
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
Checking /home/gauthier/.config/mimeapps.list
eog.desktop
The mimeapps.list
used for setting vs reading defaults is not the same.
Solution (thanks to a comment here):
rm ~/.config/mimeapps.list
answered Jun 27 at 8:47
Gauthier
415518
415518
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452174%2fcannot-set-default-application-for-xdg-open%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password