Acestream is broken | xdg-open/xdg-mime: no method available

acestream is broken

A couple of days ago everything was working.

And now…

$ /usr/bin/sh /usr/bin/xdg-open acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766

xdg-open: no method available for opening acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766

$ mpv --no-ytdl --cache=yes --hwdec=auto http://127.0.0.1:6878/ace/getstream?id=b8cad4710b1c3b2b84a82c1ece40c08517b8f766
Works fine

OS = Fedora LXQT 40
Last update = today, 2024-05-11
acestream installed via snap

Thanx

It sounds like you need this:
GitHub - Digitalone1/mpv-acestream: Small Lua script that adds AceStream protocol handler to mpv player

If the issue persists, check the output:

xdg-mime query default x-scheme-handler/acestream
mpv acestream://...
1 Like
mpv acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766
[mpv_acestream] AceStream protocol detected. 

(+) Video --vid=1 (h264 1920x1080 25.000fps)                                                                                       
(+) Audio --aid=1 --alang=deu (ac3 2ch 48000Hz)

works

From browser dont work

$ xdg-mime query default x-scheme-handler/acestream
xdg-mime: no method available for querying the default application for MIME type of 'x-scheme-handler/acestream'
xdg-mime default mpv.desktop x-scheme-handler/acestream
$ xdg-mime default mpv.desktop x-scheme-handler/acestream
xdg-mime: no method available for setting the default application for MIME type(s) of 'x-scheme-handler/acestream'

I think upgrade 39 → 40 is reason

$ sudo dnf history info 721 |head
Transaction ID : 721
Begin time     : Tue May  7 16:01:05 2024
Begin rpmdb    : 8d93185832df435df32f0af4cb73d9b3d8ffc9ba3868a08ffbc4b649c903f0d8
End time       : Tue May  7 16:29:27 2024 (28 minutes)
End rpmdb      : 348394eb70e31335711e1f5b04c1b7a996ba7ea21f2e55a986beff47247a0f10
User           : System <unset>
Return-Code    : Success
Releasever     : 40
Command Line   : system-upgrade upgrade
$ sudo dnf history info 721 | grep xdg
    Upgrade       libqtxdg-3.12.0-3.fc40.x86_64                                        @fedora
    Upgraded      libqtxdg-3.11.0-1.fc39.x86_64                                        @@System
    Upgrade       python3-pyxdg-0.27-11.fc40.noarch                                    @fedora
    Upgraded      python3-pyxdg-0.27-9.fc39.noarch                                     @@System
    Upgrade       xdg-dbus-proxy-0.1.5-2.fc40.x86_64                                   @fedora
    Upgraded      xdg-dbus-proxy-0.1.5-1.fc39.x86_64                                   @@System
    Upgrade       xdg-desktop-portal-gtk-1.15.1-5.fc40.x86_64                          @fedora
    Upgraded      xdg-desktop-portal-gtk-1.15.1-1.fc39.x86_64                          @@System
    Upgrade       xdg-user-dirs-0.18-4.fc40.x86_64                                     @fedora
    Upgraded      xdg-user-dirs-0.18-3.fc39.x86_64                                     @@System
    Upgrade       xdg-utils-1.2.1-1.fc40.noarch                                        @fedora
    Upgraded      xdg-utils-1.1.3-15.fc39.noarch                                       @@System
    Upgrade       xdg-desktop-portal-1.18.4-1.fc40.x86_64                              @updates
    Upgraded      xdg-desktop-portal-1.18.2-6.fc39.x86_64                              @@System
$
sudo dnf install qtxdg-tools
qtxdg-mat defapp --set mpv.desktop x-scheme-handler/acestream
qtxdg-mat open acestream://...

sorry, i don’t understand what sould i do with xdg-mime.in and xdg-open.in ?

$ qtxdg-mat defapp --set mpv.desktop x-scheme-handler/acestream
Cannot mix incompatible Qt library (5.15.12) with this library (5.15.13)
Set '/usr/share/applications/mpv.desktop' as default for 'x-scheme-handler/acestream'
qtxdg-mat open acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766
Cannot mix incompatible Qt library (5.15.12) with this library (5.15.13)

but if acestreamengine already running video plays.

$ /usr/bin/sh /usr/bin/xdg-open acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766
Cannot mix incompatible Qt library (5.15.12) with this library (5.15.13)

but it works if acestreamengine already running. video plays.

$ mpv acestream://b8cad4710b1c3b2b84a82c1ece40c08517b8f766
works if acestreamengine already running.

Browser says (at journalctl)
qtxdg-mat[7028]: Cannot mix incompatible Qt library (5.15.12) with this library (5.15.13)
and video don’t play even acestreamengine already running.

1 Like

It looks like versions of some Qt libraries are out of sync:

rpm -q -a | grep -e "5\.15\.12"
sudo dnf upgrade --refresh 
rpm -q -a | grep -e "5\.15\.12"

no output

rpm -q -a | grep -e "5\.15\.13" |wc -l
27
$ sudo dnf upgrade --refresh 
Copr repo for cherrytree owned by bcotton                                                           1.3 kB/s | 1.5 kB     00:01    
Copr repo for linssid owned by nucleo                                                               3.0 kB/s | 1.5 kB     00:00    
Copr repo for PyCharm owned by phracek                                                              9.5 kB/s | 1.8 kB     00:00    
Copr repo for dkms-8821au owned by sunwire                                                          7.7 kB/s | 1.5 kB     00:00    
Fedora 40 - x86_64                                                                                   43 kB/s |  25 kB     00:00    
Fedora 40 openh264 (From Cisco) - x86_64                                                            2.4 kB/s | 989  B     00:00    
Fedora 40 - x86_64 - Updates                                                                         83 kB/s |  21 kB     00:00    
LibreWolf Software Repository                                                                       3.6 kB/s | 833  B     00:00    
Opera packages                                                                                       17 kB/s | 3.0 kB     00:00    
ProtonVPN Fedora Stable repository                                                                  1.9 kB/s | 659  B     00:00    
RPM Fusion for Fedora 40 - Free                                                                      39 kB/s | 6.5 kB     00:00    
RPM Fusion for Fedora 40 - Free - Updates                                                            42 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree                                                                   50 kB/s | 6.6 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - Updates                                                         15 kB/s | 6.1 kB     00:00    
vivaldi                                                                                             203  B/s | 3.0 kB     00:15    
Dependencies resolved.
Nothing to do.
Complete!
$
1 Like

And what’s next?
Waiting for a new version of qtxdg-tools?
How long?

Is there a way to update on my own?

I tested it in a VM with other MIME types and also see the message that looks like an error, but it’s actually just a warning as it still works, so let’s continue troubleshooting:

FILE="$(ls {/usr,~/.local}/share/applications/mpv.desktop)"
ls -l -h ${FILE}
grep -e ^Exec= ${FILE}
desktop-file-validate ${FILE}; echo ${?}
qtxdg-mat defapp x-scheme-handler/acestream; echo ${?}
grep -e "^\[" -e "acestream" ~/{.config,.local/share}/mime*
1 Like
$ FILE="$(ls {/usr,~/.local}/share/applications/mpv.desktop)"
$ echo $FILE
/usr/share/applications/mpv.desktop
$ ls -l -h ${FILE}
-rw-r--r--. 1 root root 3,4K лис 21 20:47 /usr/share/applications/mpv.desktop
$ grep -e ^Exec= ${FILE}
Exec=mpv --player-operation-mode=pseudo-gui -- %U
$ desktop-file-validate ${FILE}; echo ${?}
0
$ qtxdg-mat defapp x-scheme-handler/acestream; echo ${?}
Cannot mix incompatible Qt library (5.15.12) with this library (5.15.13)
mpv.desktop
0
$ grep -e "^\[" -e "acestream" ~/{.config,.local/share}/mime*
/home/archer/.config/mimeapps.list:[Default Applications]
/home/archer/.config/mimeapps.list:[Added Associations]
/home/archer/.config/mimeapps.list:x-scheme-handler/acestream=mpv.desktop;
1 Like

Try to open it using the command from the desktop file:

mpv --player-operation-mode=pseudo-gui -- acestream://...

mpv --player-operation-mode=pseudo-gui -- acestream://ac675c82d6dfd4a201532c18b42e48dacb7c32c6

works
if acestreamengine runs

whis no output at terminal

journalctl says:
rtkit-daemon[1205]: Successfully made thread 3809 of process 3774 (/usr/bin/mpv) owned by '1000' RT at priority 20.

I run it at my another notebook
where still Fedora LXQT 39

exept qtxdg-mat (it dont installed)

$ FILE="$(ls {/usr,~/.local}/share/applications/mpv.desktop)"
$ echo $FILE
/usr/share/applications/mpv.desktop
$ ls -l -h ${FILE}
-rw-r--r-- 1 root root 3,4K лип 23  2023
/usr/share/applications/mpv.desktop
$ grep -e ^Exec= ${FILE}
Exec=mpv --player-operation-mode=pseudo-gui -- %U
$ desktop-file-validate ${FILE}; echo ${?}
0
$ grep -e "^\[" -e "acestream" ~/{.config,.local/share}/mime*
/home/luda/.config/mimeapps.list:[Default Applications]

That’s all
and all works…

I have multiple browsers.

Default browser is Vivaldi.
Also have

  • Opera
  • Chromium
  • LibreWolf
  • Falkon

In the address bar put

acestream://ac675c82d6dfd4a201532c18b42e48dacb7c32c6

Falkon, Chromium, Opera
jumps to DuckDuckGo search

Vivaldi
ask “Open mpv media Player?”
click “Open” - and nothing.
Screen-2024-05-20_20-45-16

LibreWolf
ask “Open mpv media Player?”
click “Open” - and video plays. BINGO!

and on click acestream:// link
one time asked “always allow start mpv?”
Screen-2024-05-20_20-54-02

i say “Yes” and LibreWolf always start mpv.

What’s wrong with Falkon, Chromium, Opera?
and my default Vivaldi?

magic!

I was having these problems. with xdg-open “no method available for opening”, after upgrade to Fedora 41. And, as a bonus, Ctrl-click links didn’t work in qterminal. Neither did right-click and choosing “Open Link”.

I wound up putting a trace on xdg-open by putting set -x at the top of thefile. (It’s a shell script after all). It told meqtxdg-mat was missing. So I installed it. And it started working after a few reboots, and possibly after reinstalling all qterminal* packages. I did a lot of stuff, okay? So xdg-open could use some better error messages.

But I hear it’s deprecated and will disappear eventually, in favor of gio-open or some such. Anyone confirm?