gmg137 / netease-cloud-music-gtk

Linux 平台下基于 Rust + GTK 开发的网易云音乐播放器
GNU General Public License v3.0
1.5k stars 89 forks source link

Tumbleweed + KDE wayland 下无法留存在后台播放 #274

Closed ichinose-chiya closed 4 months ago

ichinose-chiya commented 4 months ago

Describe the bug Tumbleweed + KDE wayland 下无法留存在后台播放.

To Reproduce Steps to reproduce the behavior:

  1. 打开软件
  2. 播放歌单
  3. 关闭软件
  4. 播放终止,无法在 ps -ef 中继续看到 netease-cloud-music-gtk4

Expected behavior 关闭窗口后软件应当能在后台继续播放音乐?

Screenshots 无屏幕截图

Desktop (please complete the following information):

Additional context 通过命令行进行启动时输出如下(手动关闭窗口后停止输出,释放命令行):

$ netease-cloud-music-gtk4 

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:11:33.064: Unknown key gtk-modules in /home/ichinose/.config/gtk-4.0/settings.ini

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:12:27.396: Broken accounting of active state for widget 0x56028996cc80(GtkBox)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:12:27.396: Broken accounting of active state for widget 0x560285f43a60(GtkBox)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:12:27.396: Broken accounting of active state for widget 0x560289206e60(GtkBox)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:12:27.396: Broken accounting of active state for widget 0x5602895654b0(AdwClamp)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:12:27.396: Broken accounting of active state for widget 0x5602880e82d0(SearchSongPage)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:13:41.435: Broken accounting of active state for widget 0x56028703e400(GtkGridView)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:13:41.435: Broken accounting of active state for widget 0x560289821860(GtkScrolledWindow)

(netease-cloud-music-gtk4:11712): Gtk-WARNING **: 20:13:41.435: Broken accounting of active state for widget 0x56028202d940(SearchSongListPage)

添加环境变量 RUST_LOG=debug 后在关闭窗口时无新日志输出,最后的输出如下(与前面切换其他歌曲的输出内容无异):

[2024-03-02T09:27:52Z DEBUG isahc::handler] handler;
[2024-03-02T09:27:52Z DEBUG isahc::handler] handler; id=1
[2024-03-02T09:27:53Z DEBUG isahc::handler] Host p3.music.126.net:80 was resolved.
[2024-03-02T09:27:53Z DEBUG isahc::handler] IPv6: 2404:2280:1e2:0:3::3f7, 2404:2280:1e2:0:3::3f8
[2024-03-02T09:27:53Z DEBUG isahc::handler] IPv4: 47.246.42.215, 47.246.42.79, 47.246.42.216, 47.246.42.126, 47.246.42.83, 47.246.42.141, 47.246.42.202, 47.246.42.77
[2024-03-02T09:27:53Z DEBUG isahc::handler]   Trying [2404:2280:1e2:0:3::3f7]:80...
[2024-03-02T09:27:53Z DEBUG isahc::handler] Connected to p3.music.126.net (2404:2280:1e2:0:3::3f7) port 80
[2024-03-02T09:27:53Z DEBUG isahc::handler] Connection #3 to host p3.music.126.net left intact
gmg137 commented 4 months ago

首选项中后台运行打开了没?

ichinose-chiya commented 4 months ago

解决了,确实是首选项中未开启的缘故,我原本以为这个特性会是默认开启的