Logout Menu broken after recent upgrade (Sid) SOLVED

Forum Forums News Sid Upgraders Logout Menu broken after recent upgrade (Sid) SOLVED

  • This topic has 11 replies, 4 voices, and was last updated Jan 4-7:33 pm by Xunzi_23.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #96734
    Member
    Xunzi_23

      sid was bored and broke a toy

      After recent updates shown below logout shutdown menu is not showing.
      Using Ctrl Alt Delete brings up a menu but it has no active function.

      I suspect something changed in python updates caused breakage.

      For now using terminal commands which may cause raised eyebrows with my latest new user involved.

      Install: python3.11:amd64 (3.11.1-2, automatic), libpython3.11-minimal:amd64 (3.11.1-2, automatic),
      libpython3.11-stdlib:amd64 (3.11.1-2, automatic), python3.11-minimal:amd64 (3.11.1-2, automatic)
      Upgrade: libnetfilter-conntrack3:amd64 (1.0.9-2, 1.0.9-3), libimath-3-1-29:amd64 (3.1.5-1+b1,
      3.1.5-1+b2), claws-mail:amd64 (4.1.1-2, 4.1.1-2+b1), libsnmp-base:amd64 (5.9.3+dfsg-1, 5.9.3+dfsg-2),
      gcc-10:amd64 (10.4.0-5, 10.4.0-6), libsnmp40:amd64 (5.9.3+dfsg-1+b2, 5.9.3+dfsg-2),
      python3-minimal:amd64 (3.10.6-3+b1, 3.11.1-1), gir1.2-freedesktop:amd64 (1.74.0-2, 1.74.0-2+b1),
      blueman:amd64 (2.3.5-2, 2.3.5-2+b1), gir1.2-glib-2.0:amd64 (1.74.0-2, 1.74.0-2+b1),
      claws-mail-pgpmime:amd64 (4.1.1-2, 4.1.1-2+b1), claws-mail-smime-plugin:amd64 (4.1.1-2, 4.1.1-2+b1),
      python3:amd64 (3.10.6-3+b1, 3.11.1-1), libimlib2:amd64 (1.10.0-2, 1.10.0-4),
      claws-mail-pdf-viewer:amd64 (4.1.1-2, 4.1.1-2+b1),
      libgirepository-1.0-1:amd64 (1.74.0-2, 1.74.0-2+b1), libnvme1:amd64 (1.2-2, 1.2-2+b1),
      manpages:amd64 (6.01-1, 6.02-1), cpp-10:amd64 (10.4.0-5, 10.4.0-6),
      libpython3-stdlib:amd64 (3.10.6-3+b1, 3.11.1-1), btrfs-progs:amd64 (6.1-1, 6.1-1+b1),
      gcc-10-base:amd64 (10.4.0-5, 10.4.0-6), claws-mail-pgpinline:amd64 (4.1.1-2, 4.1.1-2+b1),
      libgcc-10-dev:amd64 (10.4.0-5, 10.4.0-6)
      End-Date: 2023-01-03 13:26:34

      Commandline: apt autoremove
      Requested-By: user (1000)
      Remove: python3.10:amd64 (3.10.9-1), libpython3.10-minimal:amd64 (3.10.9-1),
      libpython3.10-stdlib:amd64 (3.10.9-1), python3.10-minimal:amd64 (3.10.9-1)
      End-Date: 2023-01-03 13:27:00

      All help and advice welcome.

      • This topic was modified 4 months ago by Xunzi_23.
      #96739
      Member
      sybok
        Helpful
        Up
        0
        ::

        Hi, do you mean the exit/logout/lock-screen/… options are available in ‘[/usr/local/bin/]desktop-session-exit’ (in my antiX-21/bullseye stable) points to a Python-3 script ‘/usr/local/lib/desktop-session/desktop-session-exit.py’ (by Dave = @dave ?).

        When you call ‘desktop-session-exit’ from terminal, does it behave in the same way?
        No active function = cannot select by clicking, or selected but no effect?

        Could this be a path issue?

        #96748
        Member
        Xunzi_23
          Helpful
          Up
          0
          ::

          Hi sybok, after yet another sid update can now show a partialy working menu, but exit session is greyed out.
          Everything worked fine until upstream updates came in to play.

          from terminal I get

          desktop-session-exit
          user@messx1:~
          $ Traceback (most recent call last):
          File “/usr/local/lib/desktop-session/desktop-session-exit.py”, line 25, in <module>
          gettext.install(domain = “desktop-session-exit”, codeset = ‘utf-8’)
          TypeError: install() got an unexpected keyword argument ‘codeset’

          The script from dave here
          https://github.com/antiX-Dave/desktop-session/blob/master/desktop-session/lib/desktop-session/ds-exit.py

          The part mentioned in the error is at end of script.

          • This reply was modified 4 months ago by Xunzi_23.
          #96755
          Member
          sybok
            Helpful
            Up
            0
            ::

            When I check the Python-3 documentation, it confirms that ‘codeset’ (keyword) parameter was removed, see below.
            https://docs.python.org/3/library/gettext.html?highlight=install%20gettext#gettext.install
            gettext.install(domain, localedir=None, *, names=None)
            https://docs.python.org/3.10/library/gettext.html?highlight=install%20gettext#gettext.install
            gettext.install(domain, localedir=None, codeset=None, names=None)
            Deprecated since version 3.8, removed in version 3.10: The codeset parameter.

            Hence a patch is advisable,
            A) remove ‘codeset’ from the code
            B) version-specific code either parsing and comparing the versions or a simple try-except replacing the line with ‘gettext.install’:

            try:
                gettext.install(domain = "desktop-session-exit", codeset   = 'utf-8')
            except TypeError: # Assuming due to depreacated and removed 'codeset' (missing since Python 3.11)
                gettext.install(domain = "desktop-session-exit")

            Could you test it and if it works, then contact the author of the script?

            • This reply was modified 4 months ago by sybok. Reason: split into A) and B) variants
            #96758
            Member
            PPC
              Helpful
              Up
              0
              ::

              For now using terminal commands which may cause raised eyebrows with my latest new user involved.

              hi! A bit off-topic, but installing SID on a new user’s computer is a bit of a gamble – this sort of things seem to happen all the time in roling releases, from what I read on-line.
              One possible work-around would be a simple yad window, displaying the usual exit buttons… But if an update botches yad too…
              If you send me the “exit” commands you want to be available, I can try creating a simple “Exit” yad window for you and that user. It’s not a solution, but a work-around.

              P.

              Edit: Just for the fun of it, I patched together a script in a hurry- this is not as pretty as our default Exit window, but it’s better than using the terminal…

              #!/bin/bash
              #antix Linux "Exit Session" window remade in YAD, by PPC, 4/1/2023, GLP license
              while yad --title="Exit Session" --center --form --width=450 --columns=2 --no-buttons \
              --field="    Lock Screen    !/usr/share/icons/antiX-papirus/lock.png":BTN "desktop-session-exit -L" \
              --field="Restart Session!/usr/share/icons/antiX-papirus/restart.png":BTN "desktop-session-exit -R" \
              --field="        Reboot         !/usr/share/icons/antiX-papirus/reboot.png":BTN "desktop-session-exit -r" \
              --field="  Log Out        !/usr/share/icons/antiX-papirus/logout.png":BTN "desktop-session-exit -l" \
              --field="  Suspend        !/usr/share/icons/antiX-papirus/suspend.png":BTN  "desktop-session-exit -S" \
              --field="Shutdown       !/usr/share/icons/antiX-papirus/shutdown.png":BTN "desktop-session-exit -s" 
              
              do
              	:
              done
              
              • This reply was modified 4 months ago by PPC.
              • This reply was modified 4 months ago by PPC.
              • This reply was modified 4 months ago by PPC.
              #96765
              Forum Admin
              anticapitalista
                Helpful
                Up
                0
                ::

                Fix sent to repo manager.
                Or get it here: https://download.tuxfamily.org/antix/Testing/

                Philosophers have interpreted the world in many ways; the point is to change it.

                antiX with runit - leaner and meaner.

                #96767
                Member
                Xunzi_23
                  Helpful
                  Up
                  0
                  ::

                  Hi PPC, should have been clearer, the new user will see my computer in use, he has an antiX 22
                  Live stick at present. Thank you for the script, will use as and if needed.

                  The pythhon

                  @sybok, found the python 3 change too but been fighting broken house door locking and preparing bread dough.
                  changes will filter down to other versions of antiX so a fix is definitely needed.

                  Must cook, eat, then try and figure out how to properly test the code you posted.
                  I am very clueless with regard to python so may need some further guidance.

                  #96781
                  Member
                  sybok
                    Helpful
                    Up
                    0
                    ::

                    @anticapitalista: Not quite sure why the ‘codeset’ was added; if it was OR *still-is* needed on some older Python (especially with translations), then the try-except variant is safer.

                    #96784
                    Member
                    Xunzi_23
                      Helpful
                      Up
                      0
                      ::

                      Many thanks anticapitalista and sybok,

                      Will wait to see what is decided on python coding as a longer term solution.

                      See the situation very relaxed as sid is moving fast toward coming freeze dates.
                      And to show a user the terminal will not bite his fingers off :-)). keeps me learning
                      too, both on computer skills and how to coach others.

                      #96785
                      Forum Admin
                      anticapitalista
                        Helpful
                        Up
                        0
                        ::

                        @anticapitalista: Not quite sure why the ‘codeset’ was added; if it was OR *still-is* needed on some older Python (especially with translations), then the try-except variant is safer.

                        codeset is no longer needed even on antiX-21/22.
                        I have not made the change for antiX-19

                        Philosophers have interpreted the world in many ways; the point is to change it.

                        antiX with runit - leaner and meaner.

                        #96786
                        Member
                        sybok
                          Helpful
                          Up
                          0
                          ::

                          OK, thanks for clarifying.

                          #96793
                          Member
                          Xunzi_23
                            Helpful
                            Up
                            0
                            ::

                            @anticapitalista, all others involved, many thanks for help, problem solved

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.