You are not logged in.

#1 2020-05-11 12:19:18

matse
Member
Registered: 2011-04-27
Posts: 299

[Solved] mpv on awesome wm: Failed to call inhibit

Hello,

I use awesome window manager and if I try to open a video file from command line with

mpv --no-config video.mp4

I get:

** (gnome-session-inhibit:7254): WARNING **: 14:16:10.849: Failed to call Inhibit: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

If I start mpv from e.g. "ranger" or "nautilus" it works perfectly fine - just if I start it manually it shows this error.
I start awesome via GDM (also tried sddm), which load the "/usr/share/xsessions/awesome.desktop" file by default.
If I use gnome I can start mpv perfectly via the command line.

Any suggestions?

matse

Last edited by matse (2020-05-11 20:01:07)

Offline

#2 2020-05-11 13:31:54

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [Solved] mpv on awesome wm: Failed to call inhibit

I think this is because mpv tries to prevent screen blanking and tries to call gnome-session-inhibit for that task, but since your awesome doesn't have a SessionManager, it breaks. I could be wrong and I have no idea how to fix this.

EDIT: What is ranger doing differently? What is xdg-open doing differently? Why --no-config?

Last edited by Awebb (2020-05-11 13:32:45)

Offline

#3 2020-05-11 15:44:58

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [Solved] mpv on awesome wm: Failed to call inhibit

@Awebb: To be honest I don't know what ranger or nautilus are doing differently. I looked in the "/usr/share/applications/mpv.desktop" file:

Exec=mpv --player-operation-mode=pseudo-gui -- %U

mpv is called with these options. If I try to open my video like this

mpv --player-operation-mode=pseudo-gui -- video.mp4

I get again the same error as in my first post.

The "--no-config" option was just there to show, that the error doesn't depend on my actual config. I really have no clue, why it works in ranger or nautilus.

//Edit: And you are right... I just set mpv as the default type for "video/mp4" via "xdg-mime default" and "xdg-open" also opens mpv perfectly... still don't know why vanilla mpv does not work.

Last edited by matse (2020-05-11 15:54:36)

Offline

#4 2020-05-11 17:32:46

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [Solved] mpv on awesome wm: Failed to call inhibit

Nautilus uses something like xdg-open and ranger uses rifle to determin method required to open the file.

Offline

#5 2020-05-11 20:00:51

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [Solved] mpv on awesome wm: Failed to call inhibit

I found my problem... Really stupid, for a workaround with mpv on wayland I had set the alias

alias mpv='gnome-session-inhibit mpv'

to disable blanking of the screen...
I have completely forgotten this nasty workaround and removed it. Thanks for the support!

Offline

#6 2020-05-11 20:03:49

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [Solved] mpv on awesome wm: Failed to call inhibit

Wow, I expected some dbus clusterfuck, this is one was quite comfortable!

Last edited by Awebb (2020-05-11 20:04:08)

Offline

Board footer

Powered by FluxBB