deadbeef icon indicating copy to clipboard operation
deadbeef copied to clipboard

Config option "Hide system tray icon" is ignored/ reset at every restart of DeDBeeF.

Open dreirund opened this issue 2 months ago • 9 comments

I have buolt DeaDBeeF from source from this git repository, Checkout on 2024-04-11, latest commit hash: 6b69ff9a8.

I use the GTK3 UI plugin.

When in the DeaDBeeF GUI I go to "Edit" → "Preferences" → "GUI/Misc" and then check the checkbox "Hide system tray icon", the system tray icon is still there.

When I quit DeaDBeeF and restart it, the icon re-appears and the checkbox is unchecked again.

Information about the software:

  • deadbeef --version 2>&2:
    starting deadbeef devel
    DeaDBeeF devel Copyright © 2009-2021 Oleksiy Yakovenko
    
  • Configuration: ~/.config/deadbeef/config: config.txt
  • OS: Artix GNU/Linux (rolling release)
  • Graphical Environment: xfwm4 window manager, xfce4-panel with "Status Tray Plugin", no Desktop environment

dreirund avatar Apr 11 '24 13:04 dreirund

I tried with XFCE and none of the 2 problems you described occurred to me. The setting is remembered just fine if I restart Deadbeef, and the system tray icon hides / unhides when I use that setting. I don't know what could be wrong, but usually the first thing I suggest to try is to run the official build instead if making your own, and see if the problem persists.

For the setting not persisting problem: you should see whether your deadbeef config file is user-writable. For the system tray icon not hiding: It could be that the newer version of xfce4-panel is not using the old XEmbed protocol, and this icon is something that deadbeef does not support. I could have suggested to try some other environment which still uses XEmbed, but I don't know if they still exist.

Can you post a screenshot of the menu or window which popups when you right-click the tray icon?

Oleksiy-Yakovenko avatar Apr 12 '24 09:04 Oleksiy-Yakovenko

It may also help if you run deadbeef in terminal, and post the whole terminal output.

Oleksiy-Yakovenko avatar Apr 12 '24 09:04 Oleksiy-Yakovenko

I've had this problem before, I think it was because I had deadbeef set to hide on quit instead of actually quitting, and rebooting/shutting down the pc made it not save its settings.

changing gtkui.hide_tray_icon 0 in the settings to gtkui.hide_tray_icon 1 should fix the issue. Provided deadbeef hasn't started after booting up.

Samueru-sama avatar Apr 13 '24 06:04 Samueru-sama

It may also help if you run deadbeef in terminal, and post the whole terminal output.

I attach the terminal output of a deadbeef session (starting deadbeef, checking the "Hide system tray icon" setting, quitting deadbeef; all captured with deadbeef 2>&1 | tee deadbeef.log): deadbeef.log

dreirund avatar Apr 19 '24 18:04 dreirund

For the setting not persisting problem: you should see whether your deadbeef config file is user-writable.

~/.config/deadbeef/config is read- and writeable only by the user.

Can you post a screenshot of the menu or window which popups when you right-click the tray icon?

Attached:
deadbeef_trayicon_right-click-menu

I could have suggested to try some other environment which still uses XEmbed, but I don't know if they still exist.

I don't know where I can get/ how I can use some XEmbed capable tool.

usually the first thing I suggest to try is to run the official build instead if making your own, and see if the problem persists.

Local build should be compatible with local library versions, and latest build from git should contain the latest bugfixes.

BUT:

I now tried Nightly build sourceforge.net/projects/deadbeef/files/travis/linux/master/deadbeef-static-devel-1-x86_64.pkg.tar.xz and first thing is I run into issues with your Arch Linux package: It conflicts with deadbeef and deadbeef-git without properly declared conflicts-entry (→ please fix):

error: failed to commit transaction (conflicting files)
deadbeef: /usr/share/applications/deadbeef.desktop exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/128x128/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/16x16/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/192x192/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/22x22/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/24x24/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/256x256/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/32x32/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/36x36/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/48x48/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/64x64/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/72x72/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/96x96/apps/deadbeef.png exists in filesystem (owned by deadbeef-static)
deadbeef: /usr/share/icons/hicolor/scalable/apps/deadbeef.svg exists in filesystem (owned by deadbeef-static)
Errors occurred, no packages were upgraded.

After fixing that, I could confirm that the issue is not there with that build.

Can you post the build recipe you use for your Arch Linux nightly builds? Then it can be compared against the Arch Linux AUR package.

dreirund avatar Apr 19 '24 18:04 dreirund

changing gtkui.hide_tray_icon 0 in the settings to gtkui.hide_tray_icon 1 should fix the issue. Provided deadbeef hasn't started after booting up.

It does not help. Once I start deadbeef, the setting is reset to 0.

dreirund avatar Apr 19 '24 18:04 dreirund

changing gtkui.hide_tray_icon 0 in the settings to gtkui.hide_tray_icon 1 should fix the issue. Provided deadbeef hasn't started after booting up.

It does not help. Once I start deadbeef, the setting is reset to 0.

I just went and installed the deadbeef aur package and I don't have the issue with the tray icon. I even enabled an disabled the tray icon to confirm that it works.

If you don't have the issue with the official build, use that one instead.

I now tried Nightly build sourceforge.net/projects/deadbeef/files/travis/linux/master/deadbeef-static-devel-1-x86_64.pkg.tar.xz and first thing is I run into issues with your Arch Linux package: It conflicts with deadbeef and deadbeef-git without properly declared conflicts-entry (→ please fix):

I don't think Oleksiy maintains those arch packages though.

Samueru-sama avatar Apr 19 '24 18:04 Samueru-sama

I can see that you have a lot of 3rd party plugins installed. Try removing them all, and see if the problem is fixed. Then you can try adding one plugin at a time to find out which one is causing problems, and report the bug to its respective developer.

Oleksiy-Yakovenko avatar Apr 19 '24 20:04 Oleksiy-Yakovenko

Can you post the build recipe you use for your Arch Linux nightly builds? Then it can be compared against the Arch Linux AUR package.

The script which builds archlinux package is here

Oleksiy-Yakovenko avatar Apr 19 '24 20:04 Oleksiy-Yakovenko