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

Latest version of octoxbps-notifier doesn't show updates #37

Closed
akarelas opened this issue Oct 4, 2023 · 7 comments · Fixed by #38
Closed

Latest version of octoxbps-notifier doesn't show updates #37

akarelas opened this issue Oct 4, 2023 · 7 comments · Fixed by #38

Comments

@akarelas
Copy link

akarelas commented Oct 4, 2023

When I ask it to sync database (by right-clicking on the tray icon), I sometimes get a dot on the icon, very briefly (for much less than a second), sometimes I don't get any visual feedback, then the dot disappears and nothing happens. Left-clicking on the icon then does nothing.

Then, when I immediately do at the terminal sudo xbps-install -Su, I get a list of packages that can be updated (if such exist).

Then, when I immediately do a sync database on the notifier icon, I get a red dot, and then clicking on the icon brings me the option to install the new packages.

I shouldn't have to run sudo xbps-install -Su on the terminal to update my packages.

@aarnt
Copy link
Owner

aarnt commented Oct 9, 2023

Hi @akarelas
Version 0.3.2 should work.
Check if you have these directories/files in your system:

polkit.path = $$DATADIR/polkit-1/actions
polkit.files += polkit/org.freedesktop.policykit.pkexec.run-xbpsinstall.policy
polkit_rules.path = $$ETCDIR/polkit-1/rules.d
polkit_rules.files += polkit/49-nopasswd_limited_xbps_install_sync.rules

@gc-user
Copy link

gc-user commented Oct 25, 2023

I can confirm, that the notifier (v0.3.2) seems at least at times not to check (or be able to check correctly) for updates.

If manually updating the database via the icon it may stay green, indicating no updates being available. But I noticed that if I check for updates using the terminal and get some updates displayed, and then go back and manually force the notifier to check again, the icon now is red, indicating updates being available.

I suspect, that this might be some remnant from fixing the v0.3.1 issue where the notifier asked for the password to be able to check for updates. Maybe now it just doesn't ask for the password, but can't check for updates.

My system seems to have all the paths / files you listed above.

@gc-user
Copy link

gc-user commented Nov 6, 2023

Going through logs files for a different issue I stumbled across this error message:

[polkitd] Error compiling script /etc/polkit-1/rules.d/49-nopasswd_limited_xbps_install_sync.rules: SyntaxError: parse error (line 7)

Looking at that file I'm wondering if in line 5 there's one opening parenthesis to many before "action" or if line 6 or 7 is missing one closing parenthesis. Not being a programmer I leaning more to the former, but that's just my uneducated guess.

Also, since v0.3.0 works fine, I don't think that error has anything to do with the issue that v0.3.2 introduced, since this file seems to be unchanged since 4 years.

@gc-user
Copy link

gc-user commented Nov 15, 2023

I've built the package locally with that fix, works fine! Thanks!

@akarelas
Copy link
Author

NOW octo notifier works correctly, for the first time. Thanks.

@akarelas
Copy link
Author

I didn't change anything in my system, just updated octoxbps

@akarelas
Copy link
Author

@aarnt sorry I hadn't answered to your comment here, but I couldn't really understand what I was supposed to do (your instructions might have been meant to be read by a more experienced user).

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

Successfully merging a pull request may close this issue.

3 participants