Closed crimsonduelist closed 3 months ago
Can I get a log for this? Also please follow the issue template.
Sry I d originally thought I shouldnt fill this cuz it wasnt a crash, having gone through I see it was my bad!
Please fill out this form and delete the defaults(everything not in bold font), so I can help you better
What doesn't work? Please be as precise as possible. Spotube tray icon doesnt show up
What did you do, that triggered the issue?
What do you expect should happen? Spotube tray icon should appear like it does in other bars i.e. waybar
Please include as much information about the crash/bug as possible.
If it is a visual glitch, please include a screenshot/video as well as any modifications to the css (if any). Literally using just copy pasted defaults from /usr/share/gBar/ no modifications
-Logs - I notice:
SNI: gtk_icon_theme_load_icon failed: Icon '/usr/share/spotube-bin/data/flutter_assets/assets/spotube-logo.png' not present in theme Adwaita SNI: Cannot create item due to missing icon!
Set value for WidgetsLeft: [Workspaces]
Set value for WidgetsCenter: [Time]
Set value for WidgetsRight: [Tray, Packages, Audio, Bluetooth, Network, Disk, VRAM, GPU, RAM, CPU, Battery, Power]
Set value for CPUThermalZone: /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
Set value for DrmAmdCard: card0
Set value for AmdGPUThermalZone: /device/hwmon/hwmon1/temp1_input
Set value for SuspendCommand: ~/.config/scripts/sys.sh suspend
Set value for LockCommand: ~/.config/scripts/sys.sh lock
Set value for ExitCommand: killall Hyprland
Set value for BatteryFolder: /sys/class/power_supply/BAT1
Set value for BatteryWarnThreshold: 20
Set value for DiskPartition: /
Set value for DefaultWorkspaceSymbol:
Set value for ShutdownIcon: \s
Set value for RebootIcon:
Set value for SleepIcon:
Set value for LockIcon:
Set value for ExitIcon:
Set value for BTOffIcon:
Set value for BTOnIcon:
Set value for BTConnectedIcon:
Set value for DevKeyboardIcon: \s
Set value for DevMouseIcon: \s
Set value for DevHeadsetIcon: \s
Set value for DevControllerIcon: \s
Set value for DevUnknownIcon: \s
Set value for SpeakerMutedIcon:
Set value for SpeakerHighIcon:
Set value for MicMutedIcon:
Set value for MicHighIcon:
Set value for PackageOutOfDateIcon: \s
Set value for WorkspaceScrollOnMonitor: true
Set value for WorkspaceScrollInvert: false
Set value for NumWorkspaces: 9
Set value for UseHyprlandIPC: true
Set value for Location: T
Set value for IconsAlwaysUp: false
Set value for CenterWidgets: true
Set value for CenterSpace: 300
Set value for DateTimeStyle: %a %D - %H:%M:%S %Z
Set value for MaxTitleLength: 30
Set value for AudioInput: false
Set value for AudioRevealer: false
Set value for AudioScrollSpeed: 5
Set value for AudioNumbers: false
Set value for CheckPackagesCommand: p="$(checkupdates)"; e=$?; if [ $e -eq 127 ] ; then exit 127; fi; if [ $e -eq 2 ] ; then echo "0" && exit 0; fi; echo "$p" | wc -l
Set value for CheckUpdateInterval: 300
Set value for NetworkAdapter: eno1
Set value for NetworkWidget: true
Set value for SensorTooltips: false
Set value for SensorSize: 24
Set value for NetworkIconSize: 24
Set value for EnableSNI: true
Set value for MinDownloadBytes: 0
Set value for MaxDownloadBytes: 10485760
Set value for MinUploadBytes: 0
Set value for MaxUploadBytes: 5242880
Wayland: Register <pending> at ID 0
Wayland: Monitor at ID 0 got name LVDS-2
NVML not found, disabling Nvidia GPU
AMD GPU not found, disabling AMD GPU
Can't connect to BlueZ d-bus! Disabling Bluetooth!
GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.bluez': activation request failed: unknown unit
PulseAudio: Context is ready!
PulseAudio: Update info
Warning: Couldn't open /home/crimson/.config/gBar/style.scss
Warning: Failed loading SCSS, falling back to CSS!
Info: Loading /home/crimson/.config/gBar/style.css
CSS found and loaded successfully!
Window: Create on monitor LVDS-2
Couldn't open battery charge files! Disabling battery widget.
SNI: Registered Item :1.629 /org/ayatana/NotificationItem/deluge
SNI: Registered Item :1.68 /org/ayatana/NotificationItem/alarm_clock_applet
SNI: Registered Item :1.1390 /org/ayatana/NotificationItem/31d13a60_0684_11ef_a634_97206047bb3f
SNI: Registered Item :1.1307 /StatusNotifierItem
SNI: Registered Item :1.1302 /StatusNotifierItem
SNI: Registered Item :1.30 /StatusNotifierItem
SNI: Creating Item :1.30 /StatusNotifierItem
SNI: Creating Item :1.1307 /StatusNotifierItem
SNI: Creating Item :1.1302 /StatusNotifierItem
SNI: Creating Item :1.1390 /org/ayatana/NotificationItem/31d13a60_0684_11ef_a634_97206047bb3f
SNI: Creating Item :1.68 /org/ayatana/NotificationItem/alarm_clock_applet
SNI: Creating Item :1.629 /org/ayatana/NotificationItem/deluge
SNI: Menu object path: /org/ayatana/NotificationItem/alarm_clock_applet/Menu
SNI: Creating icon from "alarm-clock"
SNI: Allocating static name buffer for :1.68
SNI: Add :1.68 to widget
SNI: Menu object path: /org/ayatana/NotificationItem/31d13a60_0684_11ef_a634_97206047bb3f/Menu
SNI: gtk_icon_theme_load_icon failed: Icon '/usr/share/spotube-bin/data/flutter_assets/assets/spotube-logo.png' not present in theme Adwaita
SNI: Cannot create item due to missing icon!
SNI: Menu object path: /org/ayatana/NotificationItem/deluge/Menu
SNI: Creating icon from "deluge-panel"
SNI: Allocating static name buffer for :1.629
SNI: Add :1.629 to widget
SNI: Title:
SNI: Menu object path: /MenuBar
SNI: Width: 22
SNI: Height: 22
SNI: Creating icon from pixmap
SNI: Allocating static name buffer for :1.1307
SNI: Add :1.1307 to widget
SNI: Title: plsandthanku - KeePassXC
SNI: Menu object path: /MenuBar
SNI: Creating icon from "keepassxc-monochrome-light"
SNI: Allocating static name buffer for :1.30
SNI: Add :1.30 to widget
SNI: Title: Flameshot
SNI: Menu object path: /MenuBar
SNI: Creating icon from "flameshot"
SNI: Allocating static name buffer for :1.1302
SNI: Add :1.1302 to widget
SNI: Reloading :1.68 /org/ayatana/NotificationItem/alarm_clock_applet (Sender: :1.68)
SNI: Reloading :1.1307 /StatusNotifierItem (Sender: :1.1307)
SNI: Title:
SNI: Menu object path: /MenuBar
~/.config/gBar/config
) used is always valuable to diagnose an issue, so please include it.
Literally using just copy pasted defaults from /usr/share/gBar/
Here copy pasted from my .config/gBar/config
# Example configuration.
# Everything after '#' is ignored
# Format of the variables:
# [variable]: [value]
# Whitespaces are ignored in the following locations:
# - Before the variable
# - After the ':'
# - After the value
#
# String variables can be escaped ([Notation in config] -> "Result"):
# - foo\\bar -> "foo<backlash>bar"
# - foo\nbar -> "foo<newline>bar"
# - foo\sbar -> "foo bar"
ForceCSS: false
WidgetsLeft: [Workspaces]
WidgetsCenter: [Time]
WidgetsRight: [Tray, Packages, Audio, Bluetooth, Network, Disk, VRAM, GPU, RAM, CPU, Battery, Power]
CPUThermalZone: /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
DrmAmdCard: card0
AmdGPUThermalZone: /device/hwmon/hwmon1/temp1_input
SuspendCommand: ~/.config/scripts/sys.sh suspend
LockCommand: ~/.config/scripts/sys.sh lock
ExitCommand: killall Hyprland
BatteryFolder: /sys/class/power_supply/BAT1
BatteryWarnThreshold: 20
DiskPartition: /
DefaultWorkspaceSymbol:
ShutdownIcon: \s RebootIcon: SleepIcon: LockIcon: ExitIcon: BTOffIcon: BTOnIcon: BTConnectedIcon: DevKeyboardIcon: \s DevMouseIcon: \s DevHeadsetIcon: \s DevControllerIcon: \s DevUnknownIcon: \s SpeakerMutedIcon: SpeakerHighIcon: MicMutedIcon: MicHighIcon: PackageOutOfDateIcon: \s
WorkspaceScrollOnMonitor: true
WorkspaceScrollInvert: false
NumWorkspaces: 9
UseHyprlandIPC: true
Location: T
IconsAlwaysUp: false
CenterWidgets: true
CenterSpace: 300
DateTimeStyle: %a %D - %H:%M:%S %Z
MaxTitleLength: 30
AudioInput: false
AudioRevealer: false
AudioScrollSpeed: 5
AudioNumbers: false
CheckPackagesCommand: p="$(checkupdates)"; e=$?; if [ $e -eq 127 ] ; then exit 127; fi; if [ $e -eq 2 ] ; then echo "0" && exit 0; fi; echo "$p" | wc -l
CheckUpdateInterval: 300
NetworkAdapter: eno1
NetworkWidget: true
SensorTooltips: false
SensorSize: 24
NetworkIconSize: 24
EnableSNI: true
MinDownloadBytes: 0 MaxDownloadBytes: 10485760 # 10 1024 1024 = 10 MiB MinUploadBytes: 0 MaxUploadBytes: 5242880 # 5 1024 1024 = 5 MiB
- OS: [Arch]
- Desktop environment [Hyprland]
- commit sha256 if possible [037a995f4b0b40e86ef476ba32b67120282f32ff] - I believe this is the one? I m using the aur gbar-git package, so took it from https://aur.archlinux.org/cgit/aur.git/commit/?h=gbar-git&id=037a995f4b0b40e86ef476ba32b67120282f32ff
Noticed smthing similar with kalarm but changing themes seemed to register at least inside the tray. Can probably be resolved with #63 If I can set custom icon i.e. /usr/share/icons/spotube/spotube-logo.png which i guess is what waybar doing for such icons example? Because spotube doesnt appear to be in breeze or papirus yet for example. I ll update if I can resolve this, it s probably somthing easy to do on my part -Unless gbar was supposed to look for that custom on its own and I missunderstood
yeah kalarm for eample works fine but I cant get spotube icon to work Maybe I missunderstood smthing? I tried setting full path, copy pasting spotube-logo in both /usr/share/icons/ and .local/share/icons and SNIIconName: KAlarm, kalarm #worked
SNIIconName: Spotube, /usr/share/icons/spotube/spotube-logo.png #didnt work even tried some other generic ones i searched inside the themes i used i.e. anydesk - which for kalarm worked for example, but spotube still nothing showed up The icon doesnt appear to be the problem as i can just copy paste it into .local/share/icons or /usr/share/icons and it ll get used for kalarm.
The icon didn't load, because spotube only gives an absolute path, which is as far is I can tell against the specification. Anyways, I added a fix for this, so it should work out of the box now.
SNIIconName: Spotube, spotube-logo #didnt work
This was a bug on my side, since for the selector I only considered the tooltip (not set by spotube) and object path (a random string for spotube). gBar now also considers the title, so SNIIconName: spotube, ...
(The lower case is important!) should work.
SNIIconName: Spotube, /usr/share/icons/spotube/spotube-logo.png #didnt work
Should also work now, when replacing "Spotube" with "spotube".
No tray icon whether spotube is start first or gbar