maestral
maestral copied to clipboard
No icon on Qubes OS (xfce4 desktop, fedora 35 guest OS)
Describe the bug
When I start Maestral from a command line, there is empty white square
To Reproduce
Run "maestral gui" or maestral_qt from the terminal
Expected behaviour
A tray icon appears
System:
- Maestral version: 1.6.2
- Python version: 3.10
- OS: Qubes OS, Fedora 35 template-based guest system.
- Desktop environment: xfce4 on Qubes
- PyQt version (for Linux GUI): 5.15.6 (5.15.6-1.fc35
Additional context
I did read the https://github.com/samschott/maestral/issues/46 but it did not help me much.
▲ ~ ls .local/lib/python3.10/site-packages/maestral_qt/resources/
__init__.py maestral_tray-info-light.svg
__pycache__ maestral_tray-paused-dark.svg
faceholder.png maestral_tray-paused-light.svg
file maestral_tray-syncing-dark.svg
maestral.desktop maestral_tray-syncing-light.svg
maestral.icns ui_dropbox_location_dialog.py
maestral.png ui_relink_dialog.py
maestral_tray-disconnected-dark.svg ui_selective_sync_dialog.py
maestral_tray-disconnected-light.svg ui_settings_window.py
maestral_tray-error-dark.svg ui_setup_dialog.py
maestral_tray-error-light.svg ui_sync_event_widget.py
maestral_tray-idle-dark.svg ui_sync_issue_widget.py
maestral_tray-idle-light.svg ui_sync_issues_window.py
maestral_tray-info-dark.svg ui_unlink_dialog.py
▲ ~ python
Python 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from maestral_qt.resources import *
>>>
>>> icon = system_tray_icon('idle')
>>> print(icon.name())
>>> print(QtGui.QIcon.hasThemeIcon(icon.name()))
True
>>>
>>> print(icon.availableSizes())
[PyQt6.QtCore.QSize(512, 512)]
>>> print(QtGui.QIcon.themeSearchPaths())
['/home/user/.local/share/icons', '/usr/local/share/icons', '/usr/share/icons', '/var/lib/snapd/desktop/icons', '/home/user/.local/share/icons', ':/icons']
>>>
Interestingly enough, maestral package location is not even in the icon search path!
I'll need to look into this. System trays in Linux desktop environments are a bit messy, many environments do their own thing in where they look for icons, which formats they accept, and if they have system trays at all. Lacklustre support from Qt does not improve things.
Any way I could help further?