My problem is that no linux-mint browser can open steam-links (although other external applications open normally).

Suppose I want to install the game, click on the appropriate button, and the browser tries to open a link like "steam: // run / 449140" using xdg-open. As a result, we get the error:

gvfs-open: steam: // run / 449140: error opening address: The specified address is not supported

But if you run the same link through steam ( steam steam://run/449140 ), then everything will be successful and a window will open with the installation of the game.

In general, I need to somehow explain to the browser that such links are opened using steam, not xdg, or configure xdg to launch the link through steam.

I tried to google this question and found this: How do I set a new xdg-open setting? . I added a new branch / desktop / gnome / url-handlers / steam with gconf and set it up, but it did not help.

Maybe I need to edit the file ~/.local/share/applications/mimeapps.list , but I absolutely do not understand how.

    1 answer 1

    Based on the answer: How to tell Chrome what to do with a magnet link?

    create a file ~/.local/share/applications/steam.desktop :

     [Desktop Entry] Type=Application Exec=steam %U StartupNotify=true Terminal=false MimeType=x-scheme-handler/steam Name=steam launcher 

    and assign it to the steam schema handler:

     $ xdg-mime default steam.desktop x-scheme-handler/steam 

    This command will add the necessary line to the required section of the ~/.local/share/applications/mimeapps.list .

    You can check the current assignment as follows:

     $ xdg-mime query default x-scheme-handler/steam 

    the command should return what you have assigned:

     steam.desktop 

    now check the operation settings:

      $ xdg-open steam://run/449140 

    this, in theory, should be the full equivalent of the command:

      $ steam steam://run/449140 

    if you don't have gnome , not kde , not lxde , and not xfce , then xdg-open will not work. It is necessary in this file (this is a shell script, exactly where it is located, you can find out with the command which xdg-open ) to replace the line

     DE=generic 

    on any of the above list. eg:

     DE=gnome 

    ps for sure from the content of the desktop file I suggested (this is the trimmed content of the file suggested by the link), you can delete a couple of lines more. I was just too lazy to test.