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

Tray icon doesn't show up using Solus Linux/Budgie #238

Closed
MatthewScholefield opened this issue Sep 24, 2018 · 6 comments
Closed

Tray icon doesn't show up using Solus Linux/Budgie #238

MatthewScholefield opened this issue Sep 24, 2018 · 6 comments

Comments

@MatthewScholefield
Copy link

MatthewScholefield commented Sep 24, 2018

Running the latest release (v0.8.0b6), on Solus Linux, the tray icon doesn't show up. Here's the stdout logs and here's the log file.

@MatthewScholefield MatthewScholefield changed the title Linux UI doesn't show up Tray icon doesn't show up Sep 24, 2018
@johan-bjareholt
Copy link
Member

Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"

This is most likely the issue. I am no expert with how tray icons work or why it tries to load the tray icon with GTK even though it's Qt, but this at least indicates that some dependency is likely missing or broken. ActivityWatch is supposed to bundle most dependencies though instead of using system libraries so this likely an issue on our end aswell.

@ErikBjare
Copy link
Member

ErikBjare commented Sep 24, 2018

I assume this would be Budgie-specific? If someone could try installing Budgie on another distro like Arch or Ubuntu and replicate that'd be much appreciated.

Edit: According to Wikipedia "Starting with version 11, Budgie will be rewritten in Qt and start using Wayland", so potentially solves one problem but causes another: #92 (in case it will also deprecate support for X11).

@ErikBjare ErikBjare changed the title Tray icon doesn't show up Tray icon doesn't show up using Solus Linux/Budgie Sep 24, 2018
@ErikBjare
Copy link
Member

I'm going to close this until someone manages to replicate and see if it applies to all environments running Budgie or just Solus.

@johan-bjareholt
Copy link
Member

Could be that Budgie just like Gnome 2.26 and above doesn't support trayicons, we should implement aw-qt to use an appindicator instead.

Similar forum thread:
https://forum.activitywatch.net/t/cant-run-aw-qt-under-gnome/169/4?u=johan-bjareholt

@ErikBjare
Copy link
Member

ErikBjare commented Oct 8, 2018

@johan-bjareholt Hmm... Does this mean we need to add gtk as a dependency and develop (how much?) Gnome/Budgie-specific code? I'd love if someone else could make this in a PR since I don't use Gnome or Budgie myself and they likely make out less than 5% of users (although to be fair possibly because it won't run easily for them).

Hadn't seen that forum post before though, well documented stuff about both Wayland and Gnome. Completely forgot I coded that "missing system tray" message box.

Also, is it just me or does the links to the logs not work anymore? Hastebin doesn't show any logs for me.

@johan-bjareholt
Copy link
Member

johan-bjareholt commented Oct 9, 2018

@ErikBjare No, trayicons are deprecated because they are an Xorg thing while appindicators has been recommended for many years and work on both kde, gnome and budgie.

Personally I didn't know until now that trayicons were based on Xorg or that appindicators were supported on KDE aswell.

I am guessing something like this is the new recommended way: https://launchpad.net/appmenu-qt5

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

No branches or pull requests

3 participants