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

Red frowny face for systray icon #4825

Closed
tmccombs opened this issue Dec 19, 2019 · 8 comments
Closed

Red frowny face for systray icon #4825

tmccombs opened this issue Dec 19, 2019 · 8 comments

Comments

@tmccombs
Copy link
Contributor

Otherwise, please include the following four components in your bug report: sway version, debug log, configuration (if applicable), and an explanation of steps taken to reproduce the issue. If sway crashes, also include a stack trace.

  • Sway Version: 1.2

Obtain a debug log like so:

sway -d 2> ~/sway.log

This will record information about sway's activity when it's running. Briefly reproduce your problem and exit sway. When preparing a debug log, brevity is important - start up sway, do the minimum work necessary to reproduce the error, then close sway.

Upload the debug log to a pastebin service such as gist.github.com, and link to it below.

I think the most relevant part is this:

2019-12-19 01:01:04 - [swaybar/tray/item.c:127] :1.105/org/ayatana/NotificationItem/udiskie IconPixmap: No such property “IconPixmap”
2019-12-19 01:01:04 - [swaybar/tray/item.c:127] :1.105/org/ayatana/NotificationItem/udiskie AttentionIconPixmap: No such property “AttentionIconPixmap”
2019-12-19 01:01:04 - [swaybar/tray/item.c:127] :1.105/org/ayatana/NotificationItem/udiskie ItemIsMenu: No such property “ItemIsMenu”
  • Configuration File: default

If I run udiskie --appindicator -t It starts udiskie and apparantly creates an applet in the tray using SNI. However, the icon is a red frowny face (see screenshot) and clicking on the icon does nothing.

image

@tmccombs
Copy link
Contributor Author

The absense of a context menu is probably because udiskie uses the canonical menu dbus interface (see #3799).

It also looks like it is providing an IconName and IconThemePath instead of an IconPixmap. I found source files in both gnome and kde, which say "names are preferred over pixmaps" (https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/master/interfaces-xml/StatusNotifierItem.xml and https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/master/interfaces-xml/StatusNotifierItem.xml)

@artizirk
Copy link

Icon not showing up problem could be fixed in sway 1.4

@ianyfan
Copy link
Contributor

ianyfan commented Mar 2, 2020

Is this still an issue?

@artizirk
Copy link

artizirk commented Mar 2, 2020

for me not since 1.4 update

@emersion emersion closed this as completed Mar 2, 2020
@Arnavion
Copy link

Arnavion commented Aug 22, 2020

I see this with sway 1.5 with fcitx's icon.

00:00:00.127 [swaybar/tray/host.c:24] Registering Status Notifier Item 'org.kde.StatusNotifierItem-81408-1/StatusNotifierItem'
00:00:00.130 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-81408-1/StatusNotifierItem IconPixmap: No such property ('org.kde.StatusNotifierItem.IconPixmap')
00:00:00.130 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-81408-1/StatusNotifierItem AttentionIconPixmap: No such property ('org.kde.StatusNotifierItem.AttentionIconPixmap')
00:00:00.130 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-81408-1/StatusNotifierItem ItemIsMenu: No such property ('org.kde.StatusNotifierItem.ItemIsMenu')

fcitx according to dbus has:

image

(Edit: To clarify for anyone not familiar with d-feet's UI: .IconName is set to "input-keyboard", .IconThemePath is set to "". I did not query the other properties which is why they don't show their values.)

Looking at swaybar/tray/item.c, the error logs are benign since it just gets whatever properties it can. It does look up icon using the value it got from IconName, so I'm not sure why it's failing to find it.

$ find /usr/share/icons -name 'input-keyboard.*'

/usr/share/icons/Adwaita/16x16/legacy/input-keyboard.png
/usr/share/icons/Adwaita/22x22/legacy/input-keyboard.png
/usr/share/icons/Adwaita/24x24/legacy/input-keyboard.png
/usr/share/icons/Adwaita/256x256/legacy/input-keyboard.png
/usr/share/icons/Adwaita/32x32/legacy/input-keyboard.png
/usr/share/icons/Adwaita/48x48/legacy/input-keyboard.png

FWIW the tray icon renders fine with waybar. It appears to be using the /usr/share/icons/Adwaita/16x16/legacy/input-keyboard.png one.

@ianyfan
Copy link
Contributor

ianyfan commented Aug 23, 2020

What is the debug output? i.e. from swaybar -d

@Arnavion
Copy link

Arnavion commented Aug 24, 2020

$ swaybar -b bar-0 -d

00:00:00.102 [swaybar/tray/tray.c:37] Initializing tray
00:00:00.103 [swaybar/tray/watcher.c:202] Registered org.freedesktop.StatusNotifierWatcher
00:00:00.103 [swaybar/tray/watcher.c:186] Failed to acquire service name 'org.kde.StatusNotifierWatcher':another tray is already running
00:00:00.104 [swaybar/tray/host.c:198] Registered org.freedesktop.StatusNotifierHost-14515
00:00:00.104 [swaybar/tray/host.c:198] Registered org.kde.StatusNotifierHost-14515
00:00:00.104 [swaybar/tray/icon.c:313] Failed to load theme 'default' - parsing of file '/home/arnavion/.icons/default/index.theme' failed on line 5 (group 'Icon Theme'): missing required key 'Directories'
00:00:00.108 [swaybar/tray/icon.c:379] Loaded icon themes: Hicolor, Adwaita
00:00:00.123 [swaybar/tray/watcher.c:107] Registering Status Notifier Host 'org.freedesktop.StatusNotifierHost-14515'
00:00:00.123 [swaybar/tray/host.c:24] Registering Status Notifier Item 'org.kde.StatusNotifierItem-3242-1/StatusNotifierItem'
00:00:00.126 [swaybar/tray/item.c:152] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem IconThemePath = ''
00:00:00.126 [swaybar/tray/item.c:152] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem Status = 'Active'
00:00:00.126 [swaybar/tray/item.c:152] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem IconName = 'input-keyboard'
00:00:00.126 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem IconPixmap: No such property ('org.kde.StatusNotifierItem.IconPixmap')
00:00:00.126 [swaybar/tray/item.c:152] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem AttentionIconName = ''
00:00:00.126 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem AttentionIconPixmap: No such property ('org.kde.StatusNotifierItem.AttentionIconPixmap')
00:00:00.126 [swaybar/tray/item.c:121] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem ItemIsMenu: No such property ('org.kde.StatusNotifierItem.ItemIsMenu')
00:00:00.126 [swaybar/tray/item.c:152] org.kde.StatusNotifierItem-3242-1/StatusNotifierItem Menu = '/MenuBar'

In case that index.theme error is relevant:

$ cat ~/.icons/default/index.theme

# This file is written by LXAppearance. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=Adwaita

@Arnavion
Copy link

Opened #5645 since emersion requested to not reuse this issue.

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

No branches or pull requests

5 participants