Re: Debian Packages Updater

Patrick CARDONA <[email protected]> Tue, 31 Mar 2026 19:56:26 +0200
Newsgroups gmane.comp.lib.gnustep.general
Message-ID <10b5a13643d1de1e4cc5f41aaedc4d94@pi500>
Hello,

Finally, I was  able to achieve Updater using a setuid for the script 
which perfoms the effective upgrade in the background and so keeping 
the progressbar and a consistent UI. To update the list of upgradable 
packages and make it available for the app, I set also a crontab for 
the root account.

I removed my badge implementation because it was not refreshing after 
the upgrade: I implemented the NSDockTile method which is better.
See it in action: 7th icon of the Clip. All is working fine now and I 
was able to perform several real packages upgrades with it.

<Updater_list_of_upgradable_packages.jpg><Updater_upgrading_panel.jpg>
Of course, it is tied to Debian and apt, but one could adapt it to 
yum... with less effort.

The code and all the other little apps (Meteo, Birthday, UpMem) will 
be available soon as I make it part of the next Agnostep Desktop 
release.

Somebody could wonder why I develop now with the Heritage theme and 
not the AGNOSTEP one.
I will explain it in another message.

On 2026-03-28 21:04:58 +0100 Patrick CARDONA <[email protected]> 
wrote:

> (...)
> 
> Updater.app is quite finished:
> - Badge notification is working.
> - Panel with a list of upgradable packages too.
> - Pending is the way to implement action of 'Upgrade' button.
> 
> To perform this final upgrade, I firstly worked on a Panel with an 
> NSProgressBar control and a label to display the current name of the 
> package 
> being upgraded...
> Unfortunately, I did not find any way to use 'sudo' nor 'pkexec' 
> command 
> within an NSTask and have an NSPanel to type the needed password.
> So I think I will use an 'Xterm -e command' to allow the necessary 
> password 
> typing... and finally perform the upgrade like I did previously with 
> a 
> simpler  wrapper.
> 


Best regards,
Patrick

-- 
Patrick Cardona - Pi500 - GNU/Linux aarch64 (Debian 13.4)
Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64) - Window Maker 
(0.96.0-4)
GWorkspace (1.1.0 - 02 2025) - Theme: Heritage - MUA: GNUMail (1.4.0 - 
rev.947)
Updater_list_of_upgradable_packages.jpg (image/jpeg, 190.3 KB) - not displayed
Updater_upgrading_panel.jpg (image/jpeg, 172.2 KB) - not displayed