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

Systray Icon Not Loading #1524

Closed
terminalpain opened this issue May 1, 2024 · 11 comments
Closed

Systray Icon Not Loading #1524

terminalpain opened this issue May 1, 2024 · 11 comments
Labels
in/compatibility TYPE: a report about in/compatibility linux only ATTRIBUTE: this issue only applies to Linux

Comments

@terminalpain
Copy link

What happened:

When starting up system and booting in to desktop (Linux Mint) there is no Portmaster icon in the systray.

What did you expect to happen?:

I expected the icon to be there.

How did you reproduce it?:

Reboot.

If I open the app via the shortcut in my Administration menu, shutdown portmaster, then reopen portmaster the icon re-appears.

Additional logs can be found here:
�NJ{"Created":1714568703,"Modified":1714568703,"Expires":1717160703,"Deleted":0}S
executing notifier/portmaster-notifier version 0.3.6 on linux amd64

�NJ{"Created":1714426580,"Modified":1714426580,"Expires":1717018580,"Deleted":0}S
executing notifier/portmaster-notifier version 0.3.6 on linux amd64
2024/04/29 23:20:04 systray error: failed to set IconPixmap prop: dbus: connection closed by user
2024/04/29 23:20:04 systray error: failed to update menu version: dbus: connection closed by user

�NJ{"Created":1714429241,"Modified":1714429241,"Expires":1717021241,"Deleted":0}S
executing notifier/portmaster-notifier version 0.3.6 on linux amd64
2024/04/29 23:20:41 systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): The name org.kde.StatusNotifierWatcher was not provided by any .service files
2024/04/29 23:50:48 systray error: failed to set IconPixmap prop: dbus: connection closed by user
2024/04/29 23:50:48 systray error: failed to update menu version: dbus: connection closed by user

�NJ{"Created":1714471743,"Modified":1714471743,"Expires":1717063743,"Deleted":0}S
executing notifier/portmaster-notifier version 0.3.6 on linux amd64
2024/04/30 11:09:03 systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): The name org.kde.StatusNotifierWatcher was not provided by any .service files
2024/04/30 12:36:41 systray error: failed to set IconPixmap prop: dbus: connection closed by user
2024/04/30 12:36:41 systray error: failed to update menu version: dbus: connection closed by user

These logs are from the notifier directory, there are plenty of them it seems.

@terminalpain terminalpain added the bug TYPE: a report on something that isn't working label May 1, 2024
Copy link

github-actions bot commented May 1, 2024

Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:

  • 🗣️ Our community on Discord is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help.
  • 📖 The Wiki answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing.

@Raphty
Copy link
Member

Raphty commented May 2, 2024

hey @terminalpain

If you are on Linux Mint I assume you are on Cinnamon? we do not support Cinnamon DE at the moment.
If you want to help us get support for Cinnamon please let us know.

@Raphty Raphty added linux only ATTRIBUTE: this issue only applies to Linux in/compatibility TYPE: a report about in/compatibility and removed bug TYPE: a report on something that isn't working labels May 2, 2024
Copy link

github-actions bot commented May 2, 2024

Hey @terminalpain, thank you for reporting on a compatibility.

We keep a list of compatible software and user provided guides for improving compatibility in the wiki - please have a look there.
If you can't find your software in the list, then a good starting point is our guide on How do I make software compatible with Portmaster.

If you have managed to establish compatibility with an application, please share your findings here. This will greatly help other users encountering the same issues.

@terminalpain
Copy link
Author

Ye I am using Cinnamon DE, it didn't dawn on me that each DE would need extra work, but it makes sense, ah well no worries, it's just a little niggle (a tray icon). Thanks for the reply :)

@Raphty
Copy link
Member

Raphty commented May 2, 2024

@terminalpain I can't promise anything, but we are working on replacing the UI backend with Tauri, and merging the notifier into the main UI. getting that to work on cinnamon might be easier.

@dlsensei
Copy link

dlsensei commented Nov 18, 2024

Easyfix and not elegant to fix notifier not in systemtray in Linux mint 22 at startup.
just create 2 startup command in "startup applications"
1:
Stop notifier command:
killall portmaster-notifier_v0-3-6 (check systemmonitor to get the correct name of notifier)
add a delay of 10s for the startup command

2:
Start notifier command:
/opt/safing/portmaster/portmaster-start notifier
add delay 20s

notifier at startup tadaaaa!!!

@terminalpain
Copy link
Author

Thanks for the reply! I have moved on from Mint now though, and have been happily using CachyOS with Hyprland :) Which unfortunately the same thing happens, it is running, but no systray icon. I will try and mess with a delay though see if that helps, but I know if I refresh my waybar I lose it again. I actually had to do something similar with Strawberry because that had the habit of launching way before systray had a chance to start :)

@Raphty
Copy link
Member

Raphty commented Nov 21, 2024

In the current beta there is already the new Icon, it does not auto launch yet, since it is in addition to the old one, and if you see two icons that is why. But it is built differently and feedback is welcome

@terminalpain
Copy link
Author

Ok Raphty! I just switched to the beta and I will have a play around and report back!

@terminalpain
Copy link
Author

OK, so it works after some tinkering :) Obv diff distro will probably need different tinkering but I added (taken from the notifier.desktop file):

exec-once = sleep 6 && /opt/safing/portmaster/portmaster-start notifier --data=/opt/safing/portmaster

To my startup.conf and it loads a tray, if I use that tray to open the app (which I nvr do anyway, I kinda leave it to do it's thing tbh) I then get a second tray icon, which you said so was expecting, but if I refresh my waybar I go back to one tray icon :)

I did initially just add the notifier.desktop to the startup list, but that didn't work, but setting it as trusted/executable worked so then I dug deeper and came to the above solution.

Anyway, thank you :)

@dlsensei
Copy link

For my linux mint 22 cinammon i just kill the notifier and start it again and it works.
thwts why i use a startup to stop it and start it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in/compatibility TYPE: a report about in/compatibility linux only ATTRIBUTE: this issue only applies to Linux
Projects
None yet
Development

No branches or pull requests

3 participants