You are not logged in.
Hello,
I use awesome window manager and if I try to open a video file from command line with
mpv --no-config video.mp4I 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
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
@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 -- %Umpv is called with these options. If I try to open my video like this
mpv --player-operation-mode=pseudo-gui -- video.mp4I 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
Nautilus uses something like xdg-open and ranger uses rifle to determin method required to open the file.
Offline
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
Wow, I expected some dbus clusterfuck, this is one was quite comfortable!
Last edited by Awebb (2020-05-11 20:04:08)
Offline