Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dreirund opened this issue Apr 11, 2024 · 9 comments
Labels

Comments

@dreirund
Copy link

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

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
@Oleksiy-Yakovenko
Copy link
Member

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
Copy link
Member

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

@Samueru-sama
Copy link

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.

@dreirund
Copy link
Author

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
Copy link
Author

dreirund commented Apr 19, 2024

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
Copy link
Author

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.

@Samueru-sama
Copy link

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.

@Oleksiy-Yakovenko
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants