Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem installing / using lightdm-gtk-gretter-settings

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
hellomrmeseeks
Posts: 10
Joined: 2022-05-20 19:07
Has thanked: 2 times

Problem installing / using lightdm-gtk-gretter-settings

#1 Post by hellomrmeseeks »

Hello everyone!

I am attempting to download and use lightdm-gtk-greeter-settings on a fresh Debian install. (my goal is to change the background image and theme of the login screen)
I am unsuccessful:

Code: Select all

~$ lightdm-gtk-greeter-settings
Traceback (most recent call last):
  File "/usr/local/bin/lightdm-gtk-greeter-settings", line 33, in <module>
    lightdm_gtk_greeter_settings.main()
  File "/usr/local/lib/python3.9/dist-packages/lightdm_gtk_greeter_settings/__init__.py", line 20, in main
    from lightdm_gtk_greeter_settings import GtkGreeterSettingsWindow
  File "/usr/local/lib/python3.9/dist-packages/lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py", line 19, in <module>
    import ConfigParser as configparser
ModuleNotFoundError: No module named 'ConfigParser'
I found a solution online with the "No module named 'ConfigParser'" Line here:

https://researchdatapod.com/how-to-solv ... figparser/

so I tried:

Code: Select all

~$ sudo import configparser
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
So yeah the problem is just a wall of chinese to me. Why so difficult? And why is lightdm-gtk-greeter-settings something that has to be installed? Shouldn't it be included with Debian?

hellomrmeseeks
Posts: 10
Joined: 2022-05-20 19:07
Has thanked: 2 times

Re: Problem installing / using lightdm-gtk-gretter-settings

#2 Post by hellomrmeseeks »

I partially fixed it.

I did some research (as a noob no less) and found the error to at least OPEN the settings.

Edit this file:

Code: Select all

usr/local/lib/python3.9/dist-packages/lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py
Find line 19:

Code: Select all

import ConfigParser as configparser
and change it to:

Code: Select all

import configparser as configparser
So now I still have a problem.... Minor but maybe someone knows the solution.

When trying to change the ""Default user Icon" I get this error now:

Code: Select all

TypeError: _get_menu_position() takes 3 positional arguments but 5 were given
Edit:

I found the _get_menu_position() in the file

/usr/local/lib/python3.9/dist-packages/lightdm_gtk_greeter_settings/OptionEntry.py

lines 322 - 332

Code: Select all

    def _get_menu_position(self, menu, widget):
        allocation = widget.get_allocation()
        x, y = widget.get_window().get_position()
        x += allocation.x
        y += allocation.y + allocation.height
        return (x, y, False)

    def _on_button_toggled(self, toggle):
        if toggle.props.active:
            self._menu.popup(None, None, self._get_menu_position,
                             self._button, 3, Gtk.get_current_event_time())
I do not know python and I have no clue what to do.

Ill keep poking and if i find a solution I will edit.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Problem installing / using lightdm-gtk-gretter-settings

#3 Post by Head_on_a_Stick »

hellomrmeseeks wrote: 2022-06-30 16:16

Code: Select all

  File "/usr/local/bin/lightdm-gtk-greeter-settings", line 33, in <module>
No Debian package installs anything under /usr/local/. Where did you get that file?

Code: Select all

apt policy
^ That should show how badly you've damaged your system.
deadbang

Post Reply