diff --git a/files/0001-Add-support-for-stateless-lightdm-gtk-greeter.patch b/files/0001-Add-support-for-stateless-lightdm-gtk-greeter.patch deleted file mode 100644 --- a/files/0001-Add-support-for-stateless-lightdm-gtk-greeter.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 518fd3534e132f0b0811607a239ec1ec27ffd158 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Federico=20Dami=C3=A1n=20Schonborn?= - -Date: Wed, 18 Jan 2017 15:52:21 -0300 -Subject: [PATCH] Add support for stateless lightdm-gtk-greeter -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In any distribution using an stateless lightdm-gtk-greeter, the -configuration file stored in configdir doesn't exists in first place -because the greeter by default uses the files placed in datadir, so -the program doesn't allow saving changes because the file doesn't -exists and thus we don't have write permissions, so it can't be -written. - -This patch adds a permission check over configdir if the file doesn't -exists and the creation of an empty file (after writing, obviously) -and the needed directory if neccessary, so this can work as expected. - -Signed-off-by: Federico Damián Schonborn ---- - lightdm_gtk_greeter_settings/Config.py | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/lightdm_gtk_greeter_settings/Config.py b/lightdm_gtk_greeter_settings/Config.py -index e21bc63..c2c5211 100644 ---- a/lightdm_gtk_greeter_settings/Config.py -+++ b/lightdm_gtk_greeter_settings/Config.py -@@ -149,12 +149,19 @@ class Config: - else: - config_section[key] = values[-1][1] - -+ # Create an empty file if it does not exists -+ if not os.path.exists(self._output_path): -+ os.makedirs(os.path.dirname(self._output_path)) - with open(self._output_path, 'w') as file: - config_file.write(file) - - def is_writable(self): -+ # self._output_path does exists and we have write permissions (normal behaviour) - if os.path.exists(self._output_path) and os.access(self._output_path, os.W_OK): - return True -+ # self._output_path does not exits but we have write permissions in configdir (for stateless support) -+ elif os.access(os.path.dirname(os.path.dirname(self._output_path)), os.W_OK): -+ return True - return os.access(os.path.dirname(self._output_path), os.W_OK | os.X_OK) - - def items(self): --- -2.11.0 - diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -13,9 +13,7 @@ - python3-gobject-devel rundeps : - python3-gobject -setup : | - %patch -p1 < $pkgfiles/0001-Add-support-for-stateless-lightdm-gtk-greeter.patch build : | %python3_setup install : | - %python3_install + %python3_install \ No newline at end of file diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -2,8 +2,8 @@ lightdm-gtk-greeter-settings - Federico Damián Schonborn - federico.d.schonborn@protonmail.com + Asaf Niv + asafniv511@gmail.com GPL-3.0 system.utils @@ -20,6 +20,32 @@ system.utils /usr/bin + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/Config.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/IconChooserDialog.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/IconEntry.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/IndicatorPropertiesDialog.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/IndicatorsEntry.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/MonitorsGroup.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/MultiheadSetupDialog.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/OptionEntry.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/OptionGroup.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/PositionEntry.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__init__.py + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/Config.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/GtkGreeterSettingsWindow.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/IconChooserDialog.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/IconEntry.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/IndicatorPropertiesDialog.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/IndicatorsEntry.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/MonitorsGroup.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/MultiheadSetupDialog.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/OptionEntry.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/OptionGroup.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/PositionEntry.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/__init__.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/__pycache__/helpers.cpython-35.pyc + /usr/lib/python3.5/site-packages/__py3_build/lib/lightdm_gtk_greeter_settings/helpers.py /usr/lib/python3.5/site-packages/lightdm_gtk_greeter_settings-1.2.1-py3.5.egg-info /usr/lib/python3.5/site-packages/lightdm_gtk_greeter_settings/Config.py /usr/lib/python3.5/site-packages/lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py @@ -62,11 +88,11 @@ - 2017-01-18 + 2017-10-28 1.2.1 Packaging update - Federico Damián Schonborn - federico.d.schonborn@protonmail.com + Asaf Niv + asafniv511@gmail.com \ No newline at end of file