Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37478062
en ru br
Репозитории ALT

Группа :: Графические оболочки/Прочее
Пакет: lightdm-settings

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: lightdm-settings-1.8.2-alt1.patch
Скачать


 usr/bin/lightdm-settings                                 | 6 +-----
 usr/share/applications/lightdm-settings.desktop          | 2 +-
 usr/share/polkit-1/actions/org.x.lightdm-settings.policy | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/usr/bin/lightdm-settings b/usr/bin/lightdm-settings
index 39033f4..78b99bd 100755
--- a/usr/bin/lightdm-settings
+++ b/usr/bin/lightdm-settings
@@ -4,8 +4,4 @@ import os
 import subprocess
 import sys
 
-if os.getuid() != 0:
-    print("lightdm-settings needs to be run as root.")
-    sys.exit(1)
-
-subprocess.Popen("/usr/lib/lightdm-settings/lightdm-settings")
+subprocess.call(["/usr/bin/pkexec", "/usr/lib/lightdm-settings/lightdm-settings"])
diff --git a/usr/share/applications/lightdm-settings.desktop b/usr/share/applications/lightdm-settings.desktop
index eabe06f..fa1ccd4 100644
--- a/usr/share/applications/lightdm-settings.desktop
+++ b/usr/share/applications/lightdm-settings.desktop
@@ -128,8 +128,8 @@ Comment[uz]=Kirish oynasini sozlash
 Comment[vi]=CА╨╔u hц╛nh mц═n hц╛nh д▒д┐ng nhА╨╜p
 Comment[zh_CN]=И┘█Г╫╝Г≥╩Е╫∙Г╙≈Е▐ё
 Comment[zh_HK]=И┘█Г╫╝Г≥╩Е┘╔Х╕√Г╙≈
+Exec=lightdm-settings
 Comment[zh_TW]=Х╗╜Е╝ Г≥╩Е┘╔Х╕√Г╙≈
-Exec=pkexec lightdm-settings
 Icon=lightdm-settings
 StartupNotify=true
 Terminal=false
diff --git a/usr/share/polkit-1/actions/org.x.lightdm-settings.policy b/usr/share/polkit-1/actions/org.x.lightdm-settings.policy
index d5526d3..de96fa5 100644
--- a/usr/share/polkit-1/actions/org.x.lightdm-settings.policy
+++ b/usr/share/polkit-1/actions/org.x.lightdm-settings.policy
@@ -83,7 +83,7 @@
       <allow_inactive>no</allow_inactive>
       <allow_active>auth_admin_keep</allow_active>
     </defaults>
-    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/lightdm-settings</annotate>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/lib/lightdm-settings/lightdm-settings</annotate>
     <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
   </action>
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin