Hello,
I have an issue with the dino package.
the mime type package is not declared.
this command not open the dino application.
xdg-open xmpp:chat@dino.im?join
gio: xmpp:chat@dino.im?join: The specified location is not supported
On debian this command open dino .
the query the output of this query is void
xdg-mime query default x-scheme-handler/xmpp
I declared the default application with this command
xdg-mime default im.dino.Dino.desktop x-scheme-handler/xmpp
so now i have
xdg-mime query default x-scheme-handler/xmpp
im.dino.Dino.desktop
but the result of the command stay the same.
xdg-open xmpp:chat@dino.im?join
I find that the query
gio mime x-scheme-handler/xmpp
No default applications for “x-scheme-handler/xmpp”
and on debian :
pb@masterdeb:~$ gio mime x-scheme-handler/xmpp
Default application for ?x-scheme-handler/xmpp?: im.dino.Dino.desktop
Registered applications:
im.dino.Dino.desktop
Recommended applications:
im.dino.Dino.desktop
pb@masterdeb:~$
I don’t find the file where are define MIME type for all users.
And where are registred the default application for all users?
And how append a new application?
Are you having that issue on NixOS or Nix on Debian? What desktop environment do you use? How did you install Dino?
For example, if you install it using nix-env
, you will need the desktop file available for the desktop environment by adding something like the following to your ~/.profile
:
export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
(might need to re-login so that the environment is updated).
Then gio mime x-scheme-handler/xmpp im.dino.Dino.desktop
should work.
Hi
I used Nixos 20.09 with gnome desktop.
I installed dino in user env.
It 's work fine.
Thanks
Hi
Do you think that is a bug in dino package ?
I do not think Dino is at fault here. At least the desktop file looks fine on NixOS unstable.
All those MIME tools are really finicky and xdg-utils
even more since xdg-open
changes behaviour to a different (possibly broken) implementation based on (possibly broken) desktop environment detection. All of this is exacerbated by the fact that .desktop
files need to be properly installed (their location¹ listed in $XDG_DATA_DIRS
) and their Exec
entries executable (i.e. on $PATH
) in whatever process runs xdg-open
/gio open
. That might not be the case when those environment variables are not set (e.g. when a program is started in a sandbox, using some weird activation environment…).
- The locations are
$HOME/.nix-profile/share
for nix-env
, /run/current-system/sw/share
for environment.systemPackages
and who knows for other installation methods.
2 Likes