New salix-update-notifier, please test (and translate)

User avatar
laprjns
Salix Warrior
Posts: 1127
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: New salix-update-notifier, please test (and translate)

Post by laprjns »

Note that all my flatpaks are installed for my user only, not system-wide.

Code: Select all

rich[Downloads]$ sudo flatpak update
Password: 
Looking for updates…

Nothing to do.

rich[Downloads]$ flatpak update
Looking for updates…

Nothing to do.
rich[Downloads]$ 
I then ran Salix-update-manager and got the same output as I posted above; no updates listed, but still had to click the Proceed button, resulting in the "All updates have completed successfully " message.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
ibka
Posts: 161
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

Re: New salix-update-notifier, please test (and translate)

Post by ibka »

Hi gapan

I installed the new version and it don't seems to be working correct.
It is just trying to "read package lists"

Image

if i run it with "sudo env LANG=C salix-update-manager" in a terminal it shows available packages to update

Image

But there is an error in the terminal

Code: Select all

Traceback (most recent call last):
  File "/usr/sbin/salix-update-manager", line 622, in _on_updates_parsed
    if len_slapt == 0 and len_flat == 0:
NameError: name 'len_flat' is not defined
I have updated the Swedish translation.
Image
User avatar
laprjns
Salix Warrior
Posts: 1127
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: New salix-update-notifier, please test (and translate)

Post by laprjns »

Running salix-update-manager on the command line throws the same error here.

Code: Select all

rich[Downloads]$ salix-update-manager 
Traceback (most recent call last):
  File "/usr/sbin/salix-update-manager", line 622, in _on_updates_parsed
    if len_slapt == 0 and len_flat == 0:
NameError: name 'len_flat' is not defined
Changing line 622 in /usr/sbin/salix-update-manager from len_flat to len_flat_new fixed the issue.

Code: Select all

if len_slapt == 0 and len_flat_new == 0:
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
gapan
Salix Wizard
Posts: 6391
Joined: 6. Jun 2009, 17:40

Re: New salix-update-notifier, please test (and translate)

Post by gapan »

@ibka, I thought I had fixed that, but maybe I uploaded the latest packages before I did. laprjns has found the same issue.

@laprjns, are you sure you're using your flatpak user installation? We have flatpak configured to allow use of the system installation if you're in the wheel group.

Can you post the output of:

Code: Select all

sudo flatpak list --system

Code: Select all

flatpak list --system

Code: Select all

flatpak list --user
That said, I intended this to be about the system installation. Right now you need to run salix-update-manager with sudo. However, you got me thinking. Perhaps I could make it so that if it runs with sudo, then the system installation is used and if run as user, the --user option is used (and in that case, slapt-get will not be used at all).
Image
Image
User avatar
laprjns
Salix Warrior
Posts: 1127
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: New salix-update-notifier, please test (and translate)

Post by laprjns »

Here you go. I have never used sudo or su to install a flatpak, but my user is in the wheel group.

Code: Select all

rich[Downloads]$ sudo flatpak list --system
Password: 
Name                           Application ID                    Version                  Branch
Bambu Studio                   com.bambulab.BambuStudio          2.3.0 Public Release     stable
UltiMaker Cura                 com.ultimaker.cura                5.10.2                   stable
Wings 3D                       com.wings3d.WINGS                 2.4.1                    stable
FreeCAD                        org.freecad.FreeCAD               1.0.2                    stable
Manual                         org.freecadweb.FreeCAD.Manual                              stable
Freedesktop Platform           org.freedesktop.Platform          freedesktop-sdk-24.08.27 24.08
Freedesktop Platform           org.freedesktop.Platform          freedesktop-sdk-25.08.2  25.08
Mesa                           ….freedesktop.Platform.GL.default 25.2.4                   24.08
Mesa (Extra)                   ….freedesktop.Platform.GL.default 25.2.4                   24.08extra
Mesa                           ….freedesktop.Platform.GL.default 25.2.4                   25.08
Mesa (Extra)                   ….freedesktop.Platform.GL.default 25.2.4                   25.08-extra
Codecs Extra Extension         …reedesktop.Platform.codecs-extra                          25.08-extra
openh264                       org.freedesktop.Platform.openh264 2.5.1                    2.5.1
GNOME Application Platform ve… org.gnome.Platform                                         48
Adwaita theme                  org.kde.KStyle.Adwaita                                     5.15-24.08
Adwaita theme                  org.kde.KStyle.Adwaita                                     6.9
KDE Application Platform       org.kde.Platform                                           5.15-24.08
KDE Application Platform       org.kde.Platform                                           6.9
OpenSCAD                       org.openscad.OpenSCAD             2021.01                  stable

Code: Select all

rich[Downloads]$ flatpak list --system
Name                                        Application ID                              Version                       Branch
Bambu Studio                                com.bambulab.BambuStudio                    2.3.0 Public Release          stable
UltiMaker Cura                              com.ultimaker.cura                          5.10.2                        stable
Wings 3D                                    com.wings3d.WINGS                           2.4.1                         stable
FreeCAD                                     org.freecad.FreeCAD                         1.0.2                         stable
Manual                                      org.freecadweb.FreeCAD.Manual                                             stable
Freedesktop Platform                        org.freedesktop.Platform                    freedesktop-sdk-24.08.27      24.08
Freedesktop Platform                        org.freedesktop.Platform                    freedesktop-sdk-25.08.2       25.08
Mesa                                        org.freedesktop.Platform.GL.default         25.2.4                        24.08
Mesa (Extra)                                org.freedesktop.Platform.GL.default         25.2.4                        24.08extra
Mesa                                        org.freedesktop.Platform.GL.default         25.2.4                        25.08
Mesa (Extra)                                org.freedesktop.Platform.GL.default         25.2.4                        25.08-extra
Codecs Extra Extension                      org.freedesktop.Platform.codecs-extra                                     25.08-extra
openh264                                    org.freedesktop.Platform.openh264           2.5.1                         2.5.1
GNOME Application Platform version 48       org.gnome.Platform                                                        48
Adwaita theme                               org.kde.KStyle.Adwaita                                                    5.15-24.08
Adwaita theme                               org.kde.KStyle.Adwaita                                                    6.9
KDE Application Platform                    org.kde.Platform                                                          5.15-24.08
KDE Application Platform                    org.kde.Platform                                                          6.9
OpenSCAD                                    org.openscad.OpenSCAD                       2021.01                       stable

Code: Select all

rich[Downloads]$ flatpak list --user
rich[Downloads]$ 

Code: Select all

rich[Downloads]$ groups
users tty lp wheel floppy dialout audio video cdrom pulse plugdev power netdev polkitd scanner sambashare
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
gapan
Salix Wizard
Posts: 6391
Joined: 6. Jun 2009, 17:40

Re: New salix-update-notifier, please test (and translate)

Post by gapan »

Yes, thank you! You're using the system flatpak installation, although you're not using sudo. So, the flatpaks you install are available to all users. This is our default.

If you had used --user when running flatpak, then your flatpaks would only be available to your current user.

I still don't understand why you're getting that blank list though.
Image
Image
User avatar
laprjns
Salix Warrior
Posts: 1127
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: New salix-update-notifier, please test (and translate)

Post by laprjns »

Changing line 622 in /usr/sbin/salix-update-manager to

Code: Select all

 if len_slapt == 0 and len_flat_new == 0:
fixed the problem. Now I get the "..no available update message".

Image
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
gapan
Salix Wizard
Posts: 6391
Joined: 6. Jun 2009, 17:40

Re: New salix-update-notifier, please test (and translate)

Post by gapan »

Ah, so that it what I think I have already fixed locally and thought was in the latest package (but apparently isn't). My fix was actually to add this line above that if:

Code: Select all

len_flat = len_flat_new + len_flat_updates
and keep the if as it was.

I will provide updated packages later. In the meantime, you can get the latest code from git and try that:

Code: Select all

git clone git@github.com:gapan/salix-update-notifier.git
cd salix-update-notifier/src
sudo ./salix-update-manager
Just run

Code: Select all

git pull
at any time to update to the latest code.
Image
Image
Post Reply