jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.63k stars 93 forks source link

Latest Flatpak fails to load GUI #219

Open baarkerlounger opened 3 years ago

baarkerlounger commented 3 years ago

Describe the bug Latest version via flatpak doesn't start on Ubuntu 21.04

To Reproduce

flatpak install com.github.iwalton3.jellyfin-mpv-shim
flatpak run com.github.iwalton3.jellyfin-mpv-shim

Expected behavior App GUI launches

Desktop (please complete the following information): Ubuntu 21.04 Gnome 3.38.5 Wayland

Error Messages

$ flatpak run com.github.iwalton3.jellyfin-mpv-shim
2021-05-11 13:03:24,369 [ WARNING] conf: Config item desktop_fullscreen was ignored.
2021-05-11 13:03:24,369 [ WARNING] conf: Config item desktop_keep_pos was ignored.
2021-05-11 13:03:24,369 [ WARNING] conf: Config item desktop_keep_size was ignored.
2021-05-11 13:03:24,369 [ WARNING] conf: Config item desktop_scale was ignored.
2021-05-11 13:03:24,369 [ WARNING] conf: Config item enable_desktop was ignored.
Gtk-CRITICAL **: 13:03:24.709: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
modzilla99 commented 3 years ago

Same here on Fedora 34 (Gnome 40 + Wayland):

2021-06-09 09:04:05,816 [ WARNING] conf: Config item desktop_fullscreen was ignored.
2021-06-09 09:04:05,816 [ WARNING] conf: Config item desktop_keep_pos was ignored.
2021-06-09 09:04:05,816 [ WARNING] conf: Config item desktop_keep_size was ignored.
2021-06-09 09:04:05,816 [ WARNING] conf: Config item desktop_scale was ignored.
2021-06-09 09:04:05,816 [ WARNING] conf: Config item enable_desktop was ignored.
2021-06-09 09:04:05,816 [    INFO] conf: Loaded settings from json: /home/myuser/.var/app/com.github.iwalton3.jellyfin-mpv-shim/config/jellyfin-mpv-shim/conf.json
2021-06-09 09:04:05,954 [    INFO] player: Using libmpv1 playback backend.
2021-06-09 09:04:06,077 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.client: JellyfinClient initializing...
2021-06-09 09:04:06,077 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Configuration initializing...
2021-06-09 09:04:06,078 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin http constructor.
2021-06-09 09:04:06,078 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: WSClient initializing...
2021-06-09 09:04:06,078 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: ConnectionManager initializing...
2021-06-09 09:04:06,079 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: Credentials initializing...
2021-06-09 09:04:06,079 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin app constructor.
2021-06-09 09:04:06,079 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin connect
2021-06-09 09:04:06,080 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin getAvailableServers
2021-06-09 09:04:06,080 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: credentialsupdated
2021-06-09 09:04:06,080 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect has 1 servers
2021-06-09 09:04:06,080 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connectToServer
2021-06-09 09:04:06,080 [    INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2021-06-09 09:04:06,081 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: 5
2021-06-09 09:04:06,081 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: {'Accept': 'application/json', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Application': 'Jellyfin MPV Shim/2.0.1', 'Accept-Charset': 'UTF-8,*', 'Accept-encoding': 'gzip', 'User-Agent': 'Jellyfin-MPV-Shim/2.0.1', 'x-emby-authorization': 'MediaBrowser Client=Jellyfin MPV Shim, Device=fedora-inspiron, DeviceId=c7943791-c6f1-447d-802d-16b2bb7aa7d7, Version=2.0.1'}
2021-06-09 09:04:06,086 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): myserver:443
2021-06-09 09:04:06,813 [   DEBUG] PIL.PngImagePlugin: STREAM "b'IHDR'" 16 13
2021-06-09 09:04:06,813 [   DEBUG] PIL.PngImagePlugin: STREAM "b'pHYs'" 41 9
2021-06-09 09:04:06,814 [   DEBUG] PIL.PngImagePlugin: STREAM "b'IDAT'" 62 709

(jellyfin-mpv-shim:17): Gtk-CRITICAL **: 09:04:06.989: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
2021-06-09 09:04:07,705 [   DEBUG] urllib3.connectionpool: https://myserver:443 "GET /system/info/public HTTP/1.1" 200 None
2021-06-09 09:04:07,710 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: calling onSuccessfulConnection with server Jellyfin
2021-06-09 09:04:07,710 [    INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info
2021-06-09 09:04:07,710 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: 5
2021-06-09 09:04:07,710 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: {'Accept': 'application/json', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Application': 'Jellyfin MPV Shim/2.0.1', 'Accept-Charset': 'UTF-8,*', 'Accept-encoding': 'gzip', 'User-Agent': 'Jellyfin-MPV-Shim/2.0.1', 'x-emby-authorization': 'MediaBrowser Client=Jellyfin MPV Shim, Device=fedora-inspiron, DeviceId=c7943791-c6f1-447d-802d-16b2bb7aa7d7, Version=2.0.1', 'X-MediaBrowser-Token': 'REDACTED'}
2021-06-09 09:04:07,712 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): myserver:443
2021-06-09 09:04:08,089 [   DEBUG] urllib3.connectionpool: https://myserver:443 "GET /system/info HTTP/1.1" 200 None
2021-06-09 09:04:08,094 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: credentialsupdated
2021-06-09 09:04:08,094 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: resolving connect with result: {'Servers': "[{'address': 'https://myserver', 'Name': 'Jellyfin', 'Id': '2cadd031e0544964bd58ce6c7ec84276', 'DateLastAccessed': '2021-06-09T09:04:08Z', 'UserId': '96db6c4373234f5493d66a4b9f4d6fc7', 'AccessToken': 'REDACTED', 'Users': [{'Id': '96db6c4373234f5493d66a4b9f4d6fc7', 'IsSignedInOffline': True}], 'uuid': '2cadd051e6544964bd58ce6c7ec84676', 'username': 'myuser', 'connected': True}]", 'State': 3}
2021-06-09 09:04:08,094 [    INFO] JELLYFIN.jellyfin_apiclient_python.client: User is authenticated.
2021-06-09 09:04:08,095 [   DEBUG] urllib3.util.retry: Converted retries value: 3 -> 'Retry(total=3, connect=None, read=None, redirect=None, status=None)'
2021-06-09 09:04:08,095 [   DEBUG] urllib3.util.retry: Converted retries value: 3 -> 'Retry(total=3, connect=None, read=None, redirect=None, status=None)'
2021-06-09 09:04:08,095 [    INFO] JELLYFIN.jellyfin_apiclient_python.ws_client: Websocket url: wss://myserver/socket?api_key=REDACTED&device_id=c7943791-c6f1-447d-802d-16b2bb7aa7d7
2021-06-09 09:04:08,097 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): myserver:443
2021-06-09 09:04:08,747 [   DEBUG] urllib3.connectionpool: https://myserver:443 "POST /Sessions/Capabilities/Full HTTP/1.1" 204 0
2021-06-09 09:04:08,751 [    INFO] JELLYFIN.jellyfin_apiclient_python.ws_client: --->[ websocket ]
2021-06-09 09:04:08,751 [   DEBUG] event_handler: Unhandled Event WebSocketConnect: None
2021-06-09 09:04:08,754 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: ForceKeepAlive received from server.
2021-06-09 09:04:08,807 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: KeepAlive received from server.
^[[1;3H2021-06-09 09:04:38,839 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: KeepAlive received from server.
iwalton3 commented 3 years ago

Wayland

I don't think tkinter works with Wayland unfortunately.

modzilla99 commented 2 years ago

For me it doesn't work on X11 as well.

2021-12-24 14:32:17,673 [    INFO] conf: Loaded settings from json: /home/modzilla/.var/app/com.github.iwalton3.jellyfin-mpv-shim/config/jellyfin-mpv-shim/conf.json
2021-12-24 14:32:17,693 [    INFO] player: Using libmpv1 playback backend.
2021-12-24 14:32:17,705 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.client: JellyfinClient initializing...
2021-12-24 14:32:17,705 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Configuration initializing...
2021-12-24 14:32:17,705 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin http constructor.
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: WSClient initializing...
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: ConnectionManager initializing...
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: Credentials initializing...
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin app constructor.
2021-12-24 14:32:17,706 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin connect
2021-12-24 14:32:17,706 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin getAvailableServers
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: credentialsupdated
2021-12-24 14:32:17,706 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect has 1 servers
2021-12-24 14:32:17,706 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connectToServer
2021-12-24 14:32:17,706 [    INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: 5
2021-12-24 14:32:17,706 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: {'Accept': 'application/json', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Application': 'Jellyfin MPV Shim/2.0.2', 'Accept-Charset': 'UTF-8,*', 'Accept-encoding': 'gzip', 'User-Agent': 'Jellyfin-MPV-Shim/2.0.2', 'x-emby-authorization': 'MediaBrowser Client=Jellyfin MPV Shim, Device=fedora-amd-jl, DeviceId=86a96f29-2791-4952-bcd5-71356ceb0349, Version=2.0.2'}
2021-12-24 14:32:17,709 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): jellyfin.mydomain.com:443
2021-12-24 14:32:17,768 [   DEBUG] PIL.PngImagePlugin: STREAM "b'IHDR'" 16 13
2021-12-24 14:32:17,769 [   DEBUG] PIL.PngImagePlugin: STREAM "b'pHYs'" 41 9
2021-12-24 14:32:17,769 [   DEBUG] PIL.PngImagePlugin: STREAM "b'IDAT'" 62 709
Gtk-Message: 14:32:17.786: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:32:17.786: Failed to load module "pk-gtk-module"
2021-12-24 14:32:17,813 [   DEBUG] urllib3.connectionpool: https://jellyfin.mydomain.com:443 "GET /system/info/public HTTP/1.1" 200 None
2021-12-24 14:32:17,815 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: calling onSuccessfulConnection with server Jellyfin
2021-12-24 14:32:17,815 [    INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info
2021-12-24 14:32:17,815 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: 5
2021-12-24 14:32:17,815 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: {'Accept': 'application/json', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Application': 'Jellyfin MPV Shim/2.0.2', 'Accept-Charset': 'UTF-8,*', 'Accept-encoding': 'gzip', 'User-Agent': 'Jellyfin-MPV-Shim/2.0.2', 'x-emby-authorization': 'MediaBrowser Client=Jellyfin MPV Shim, Device=fedora-amd-jl, DeviceId=86a96f29-2791-4952-bcd5-71356ceb0349, Version=2.0.2', 'X-MediaBrowser-Token': 'REDACTED'}
2021-12-24 14:32:17,817 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): jellyfin.mydomain.com:443
2021-12-24 14:32:18,007 [   DEBUG] urllib3.connectionpool: https://jellyfin.mydomain.com:443 "GET /system/info HTTP/1.1" 200 None
2021-12-24 14:32:18,010 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: credentialsupdated
2021-12-24 14:32:18,010 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: resolving connect with result: {'Servers': "[{'address': 'https://jellyfin.mydomain.com', 'Name': 'Jellyfin', 'Id': '2cadd031e0544964bd58ce6c7ec84276', 'DateLastAccessed': '2021-12-24T14:32:18Z', 'UserId': '96db6c4373234f2493d33a4a8f4d6fc7', 'AccessToken': 'REDACTED', 'Users': [{'Id': '96db6c4373234f2493d33a4a8f4d6fc7', 'IsSignedInOffline': True}], 'uuid': '2cadd031e0544964bd58ce6c7ec84276', 'username': 'modzilla', 'connected': True}]", 'State': 3}
2021-12-24 14:32:18,010 [    INFO] JELLYFIN.jellyfin_apiclient_python.client: User is authenticated.
2021-12-24 14:32:18,010 [   DEBUG] urllib3.util.retry: Converted retries value: 3 -> 'Retry(total=3, connect=None, read=None, redirect=None, status=None)'
2021-12-24 14:32:18,010 [   DEBUG] urllib3.util.retry: Converted retries value: 3 -> 'Retry(total=3, connect=None, read=None, redirect=None, status=None)'
2021-12-24 14:32:18,011 [    INFO] JELLYFIN.jellyfin_apiclient_python.ws_client: Websocket url: wss://jellyfin.mydomain.com/socket?api_key=REDACTED&device_id=86a96f29-2791-4952-bcd5-71356ceb0349
2021-12-24 14:32:18,013 [   DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): jellyfin.mydomain.com:443
2021-12-24 14:32:18,234 [    INFO] JELLYFIN.jellyfin_apiclient_python.ws_client: --->[ websocket ]
2021-12-24 14:32:18,234 [   DEBUG] event_handler: Unhandled Event WebSocketConnect: None
2021-12-24 14:32:18,235 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: ForceKeepAlive received from server.
2021-12-24 14:32:18,250 [   DEBUG] urllib3.connectionpool: https://jellyfin.mydomain.com:443 "POST /Sessions/Capabilities/Full HTTP/1.1" 204 0
2021-12-24 14:32:18,250 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.ws_client: KeepAlive received from server.
modzilla99 commented 2 years ago

Although I can see the Statusbarindicator pop up and change some settings be it mpv or jellyfin related

iwalton3 commented 2 years ago

You might be trying to use the “desktop mode” that was removed. Please use Jellyfin Media Player instead for a similar experience.

kekonn commented 2 years ago

This issue still exists. I have a brand new install of Nobara (Fedora derivate) and I can't get any UI to show.

ARogovskyy commented 2 years ago

I had the same issue; you can make it work through XWayland by disabling the Wayland socket via Flatseal

vincejv commented 10 months ago

I had the same issue; you can make it work through XWayland by disabling the Wayland socket via Flatseal

Just to document further, disabling Wayland socket with flatseal like so below, causes MPV Shim not to inhibit system sleep (system sleeps/locks the screen even if a video is playing) image

So it's either

Using latest Ubuntu 22.04.02 LTS KDE Wayland with Kernel 6.6.8, MPV Shim 2.6.0

aensidhe commented 7 months ago

What should I do about this? Just install Platform version 43? I am using Mint 21.3 which is based on Ubuntu Jammy.

$ flatpak run com.github.iwalton3.jellyfin-mpv-shim   
error: runtime/org.gnome.Platform/x86_64/43 not installed

$ flatpak install runtime/org.gnome.Platform/x86_64/43                     
Looking for matches…
Info: org.gnome.Platform//43 is end-of-life, with reason:
   The GNOME 43 runtime is no longer supported as of September 20, 2023. Please ask your application developer to migrate to a supported platform.