franglais125 / apt-update-indicator Goto Github PK
View Code? Open in Web Editor NEWApt Update Indicator
Home Page: https://extensions.gnome.org/extension/1139/apt-update-indicator/
License: GNU General Public License v3.0
Apt Update Indicator
Home Page: https://extensions.gnome.org/extension/1139/apt-update-indicator/
License: GNU General Public License v3.0
I can't not uninstall apt-update-indicator by software-center.
Hi @lucatrv, @konkor, @AravK and anyone else!
I just committed the last bit of a code reorganization I have been doing. You can find the changes here:
https://github.com/franglais125/apt-update-indicator/tree/reorganization. This separates the main file into smaller files and classes. Hopefully it will help with maintainability and extensibility.
I have implemented a new monitor that check for changes in the apt and dpkg directories. Hence the indicator will update itself after applying updates/checking for updates, etc.!
Before committing this to the master branch and releasing a new version, I wanted to get some feedback to make sure that I didn't introduce regressions and that things are going smoothly.
To test the new branch (to be merged soon I hope):
git clone https://github.com/franglais125/apt-update-indicator
cd apt-update-indicator
git checkout reorganization
make && make install
Further suggestions are welcome of course.
Best, and thanks!
Fran
Your extension is spamming this issue title to the gnome-shell journal
Check it like this:
$ sudo journalctl /usr/bin/gnome-shell | grep -E 'apt-update-indicator|AptUpdateIndicator'
I fixed it by deleting the extension, cloning the repo, deleting all the references in your code to the property .actor
everywhere and then installed it
so for example on indicator.js:99 this:
this.actor.add_child(this.box);
became this:
this.add_child(this.box);
seems to have fixed it, idk if that's the best or the only solution to the problem, I won't PR it because I didn't bother to check if what I was doing was right so I might have created more issues in the process, although it seems to be working as intended.
Clicking on Apply Updates
doesn't have any action on Ubuntu 18.04.
Settings > Advanced > is set to Update-manager (Ubuntu only)
Seems like Gnome 45 decided to "simplify" imports and in the process break a huge number of extensions, hopefully its not too big a job to fix this but depending on how you manage imports this might take a while to implement
"import declarations may only appear at top level of module"
In the check-cmd entry field, change the custom command from gnome-terminal to xterm.
When no count is shown on the panel, this applet leaves empty space, which typically isn't nice-looking. Please resize the applet when no count is given. Also, the applet seems to be a little lower than other applets. Perhaps it's smaller and has been resized down?
If would find it useful if as a last step of applied updates repositories are check again after applying updates as the number shown updates should go down to zero when update process is finished. So I have to manually to recheck in order to get rid of the notification.
Debian 9 with Gnome 3.22. Intel HD 4000 graphics.
For some reason i can't screenshot it. The glitch disappears when making a screenshot. May be the focus change.
If this is not caused by the extension please tell me who else to bother. :)
Hi, I always like to to read output messages from apt or aptitude when I upgrade packages. I tried to modify the "command to update packages" in "advanced settings" but could not how to open a terminal. I tried for instance to set "xterm -hold -e apt upgrade -y" or "gnome-terminal aptitude", but no terminal is opened. Is there any way to achieve this? For me the best option would be to open a terminal with "aptitude" and let me run the packages update manually.
Thanks
@lucatrv: thanks for your input.
It'd be nice to have an icon that is:
Tentative solution for 1)
https://github.com/franglais125/apt-update-indicator/tree/larger_icon
Hi, it would be nice to refine the icons set in order to improve compliance with the Gnome guidelines (see in particular "Color vs. symbolic icons"):
https://developer.gnome.org/hig/stable/icons-and-artwork.html.en
IMHO the status and sync icons should be "symbolic", while the updates notification icon could be kept colored to better stand out.
This would be a good option for the sync icon (part of the "gnome-icon-theme-symbolic" package):
/usr/share/icons/gnome/scalable/emblems/emblem-synchronizing-symbolic.svg
As for updates notification, the current icon is already nice, but this would be another good option (part of the "gnome-icon-theme-symbolic" package):
/usr/share/icons/gnome/scalable/status/software-update-urgent-symbolic.svg
Then it would be useful to distinguish between regular and security updates. In this case I would consider the following two options instead (part of the "gnome-icon-theme" package):
/usr/share/icons/gnome/32x32/status/software-update-available.png
/usr/share/icons/gnome/32x32/status/software-update-urgent.png
Note: I would not use the icon "/usr/share/icons/gnome/scalable/status/software-update-available-symbolic.svg" for regular updates, as it does not stand out enough.
Finally for the status icon, this would be a good option IMHO (part of the "gnome-icon-theme-symbolic" package):
/usr/share/icons/gnome/scalable/apps/system-software-install-symbolic.svg
Otherwise here are a couple of other options outside Gnome:
https://thenounproject.com/term/open-source/35033/
https://www.iconfinder.com/search/?q=package&style=glyph&price=free
Cheers
When attempting to run the extension after installing on PopOS, "Error" is reported by the extension and the icon turns into a warning indicator.
With the app-update-indictator enabled, the lock screen in gnome-shell doesn't work correctly. The screen doesn't switch off and I can't connect to unlock the screen (no user icon in the lock screen).
If I disabled the extension, the lock screen works well.
I have a netbook computer with an external screen.
Debian Jessie with backport repository enabled for some applications (darktable, office) don't work well:
The extension updates and marks all packages from the backport repo like regular updates not only packages installed from the backport repo, including latest kernel, newest and don't supported by my video card Nvidia drivers and much more.
Regular updating from Synaptic or apt-get doesn't do this.
#apt-get update && apt-get upgrade
Hi @RaphaelRochet !
I am trying to port this to be usable on apt-based distros (Debian, Ubuntu).
I have it working already locally...
I was just wondering how I should modify some files that are copyrighted with your name? What's the procedure for that?
Merci !
Hi, it appears apt-update-indicator is not storing the last updates check time across sessions. I would like to check updates once a day, and there seems to be no way to achieve that. With the default settings (60 min), updates are checked 1 hr after login and then again every 1 hr. If I set a longer time, for instance 720 min, updates are never checked (because I use a session usually for a few hours a day).
An improvement would be to store the last updates check time across sessions. Once you log in, the extension would compare the current time with the last stored check time, and run right away if the set time has passed by. The same check (current time vs last stored check time) could be carried out again every minute to decide when to check updates again.
In Ubuntu 16.04 I can check for updates with aptdcon --refresh
as a normal user. If I enter this as the "Custom command to check for updates" then Apt Update Indicator prompts for my password to run this command with pkexec.
I can install packagekit-tools
and then the default aptdcon --refresh
works without a password prompt.
It would be nice to have an option to run a custom update check command without pkexec
with a checkbox option or simply requiring the user to include pkexec
in their command if the command needs it.
It would be nice to inform the user when an update is urgent.
Perhaps use a more obvious icon for instance.
The icon doesn't show in the top bar when all packages are up to date, but there is still a small clickable area that shows the indicator menu, so it's not completely gone.
Running Gnome 3.34.2.
I'm running Ubuntu Gnome and have "Software Updater" and "Software & Updates" installed. Usually I run "apt update" and "apt upgrade" to update the software. I've tried different settings under "Settings -> Advanced settings -> Update method" but when clicking "Check now" in the menu I always end up with the read warning triangle with an exclamation mark and "Error" on top the menu. Is there any log where I can check what the error is due to? What should I select under "Update method" based on the what I have installed?
First of all - great extension !
Question 1 - I see Residual Config Files. How can then be cleaned?
Question 2
I usually use sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get autoclean && sudo apt-get -y autoremove
Can this extension be set up to do this ?
Thx
The feature "new in repository" is handy. But atm you need to type the package name to use it. Not perfect for packages with version numbers and or long names.
So it would be handy if you clicked on a package name that its name gets pasted into your clipboard.
My session goes haywire basically every other time I start(ed), closes several windows and corrupts the display. A shame cause it's potentially a very useful thing to have.
Currently if a check for updates or upgrade process fails, the extension:
Instead, the exit status of the spawned program should be checked to ensure it succeeded.
Thanks @lucatrv !
FR - Include the possibility of automatically triggering the update, only requesting sudo password when requested by the update propgram (apt, aptitude, etc) I'm a sys admin, not a dev, but to me it seems like it would be a patter of checking the auto setting after new updates are available, and trigger (or not) the update module. AptX will handle the rest.
Sorry if I said something dumb
Could you please add an option to ignore package marked as hold ? This APT feature is useful to avoid upgrade that we don't want. If this choice has been done by user, I think an extension like this one could ignore this upgrade (or offer a solution to ignore it).
Thanks for this great extension !
I typically run apt updates from the CLI, and really only use this is a notifier. I also use unattended-upgrades. It would be nice if this extension could listen for the dbus signal emitted when an update completes (org.debian.apt.CacheChanged or org.freedesktop.PackageKit.UpdatesChanged?) and automatically update the number of installable packages (without performing an additional network update of the package lists).
Feature request from e.g.o:
Please make it possible to disable update notifications for the packages which are put on hold. Sometimes you may want to downgrade some package to older version, e.g when the latest version available has some problem which older versions do not have.
Hi,
Just updated to gnome 40.4 and it seems this extension is no longer compatible. Any chance it gets updated?
It seems some property is no longer supported:
/gnome-shell/extensions/[email protected]/Settings.ui:45:33 Invalid property: GtkBox.margin_left
Thanks!
Until version 20 everything runs OK. After updating to version 21, the indicator icon no longer appears.
GNOME Tweaks (extensions) shows a warning triangle saying 'error laoding extension,' and the Gnome extension website also indicates an error (apparently clickable, but clicking on 'error' does not do anything for me (see screenshot below).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.