franglais125 / apt-update-indicator

Apt Update Indicator
https://extensions.gnome.org/extension/1139/apt-update-indicator/
GNU General Public License v3.0
44 stars 17 forks source link

Code reorganization #12

Closed franglais125 closed 7 years ago

franglais125 commented 7 years ago

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

lucatrv commented 7 years ago

Hi, I followed your instructions to install the reorganization branch, but it still shows version 13, is it normal?

Thanks Luca

franglais125 commented 7 years ago

Yes, sorry, I should have changed the version to -1 in the metadata.json.

I'll fix this before merging.

franglais125 commented 7 years ago

I just pushed a small fix.

To update:

git checkout reorganization
git pull
make && make install
konkor commented 7 years ago

Looks like all fine but i'm on Debian and updates aren't so frequent.

franglais125 commented 7 years ago

Thanks for the feedback! I added the changes to master.

I'll wait a few days before uploading to extensions.gnome.org to see if anything else pops up.

lucatrv commented 7 years ago

It seems to work fine for me as well (Debian 8)

franglais125 commented 7 years ago

How is the icon size now? Did it improve? I made it 25% bigger.

ghost commented 7 years ago

It works much better now. I was about to file a bug report because when I manually update from a terminal, I need to manually click on update in the menu to update it; I'm quite sure that didn't happen again. The icon size is better, but I think instead of 25% 15-20% would have been better, to match other panel items.

On Sat, May 27, 2017 at 10:53 PM Fran Glais notifications@github.com wrote:

How is the icon size now? Did it improve? I made it 25% bigger.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/franglais125/apt-update-indicator/issues/12#issuecomment-304478603, or mute the thread https://github.com/notifications/unsubscribe-auth/ARILTrv5ihLFBXWQzTUK_mJ762wVZIfUks5r-JtugaJpZM4Nn-VG .

--

AK

franglais125 commented 7 years ago

@AravK Yeah, now the indicator will update itself every time the apt cache (or dpkg) is updated. This is not a CPU intensive task, it essentially simply runs apt list --upgradable in the background.

As for the icon size, we can easily change that. @lucatrv what do you think?

If you want to test a different size, you can simply modify this integer: https://github.com/franglais125/apt-update-indicator/blob/master/indicator.js#L80

Thanks again!

lucatrv commented 7 years ago

The icon size looks good on my PC now with iconSize = 20, or even up to 22. Thanks

franglais125 commented 7 years ago

Thank you all for your feedback!

I just uploaded a new version to extensions.gnome.org. It will be ready to be updated once it passes review. You can of course install it from git if you prefer!

Cheers