Добавлен policy

pull/11/head
Igor Belitskiy 3 years ago
parent 3f24feac67
commit e369e80096

@ -108,7 +108,7 @@ install: check uninstall
# @install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg # @install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
@install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME} @install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME}
@install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop @install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop
@install -Dm644 -t /usr/share/polkit-1/actions/ org.ublinux.pkexec.${PKGNAME}.exec.policy @install -Dm644 -t /usr/share/polkit-1/actions/ com.ublinux.pkexec.${PKGNAME}.exec.policy
@install -dm755 /usr/share/${PKGNAME}/{ui,css,images} @install -dm755 /usr/share/${PKGNAME}/{ui,css,images}
@install -Dm644 -t /usr/share/${PKGNAME}/ui/ ${PKGNAME}.glade @install -Dm644 -t /usr/share/${PKGNAME}/ui/ ${PKGNAME}.glade
@install -Dm644 -t /usr/share/${PKGNAME}/css/ style.css @install -Dm644 -t /usr/share/${PKGNAME}/css/ style.css

@ -7,17 +7,17 @@
<vendor>UBLinux</vendor> <vendor>UBLinux</vendor>
<vendor_url>https://ublinux.ru</vendor_url> <vendor_url>https://ublinux.ru</vendor_url>
<action id="org.freedesktop.policykit.ublexec.pkexec.policy.run"> <action id="org.freedesktop.policykit.ubl-settings-bootloader.pkexec.policy.run">
<description>Run "ublexec" as root</description> <description>Run "ubl-settings-bootloader" as root</description>
<description xml:lang="ru">Запус "Выполнить" с правами root</description> <description xml:lang="ru">Запус "Загрузка системы" с правами root</description>
<message>Authentication is required to run ublexec</message> <message>Authentication is required to run "ubl-settings-bootloader"</message>
<message xml:lang="ru">Требуется авторизация для запуска "Выполнить" с правами root</message> <message xml:lang="ru">Требуется авторизация для запуска "Загрузка системы" с правами root</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active> <allow_active>auth_admin</allow_active>
</defaults> </defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/ublexec</annotate> <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/ubl-settings-bootloader</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action> </action>

@ -7,7 +7,7 @@ GenericName[ru]=Загрузчик
Comment=ubl-settings-bootloader Comment=ubl-settings-bootloader
Comment[ru]=Загрузчик Comment[ru]=Загрузчик
Type=Application Type=Application
Exec=ubl-settings-bootloader Exec=pkexec ubl-settings-bootloader
Icon=ubl-settings-bootloader Icon=ubl-settings-bootloader
Terminal=false Terminal=false
X-XfcePluggable=true X-XfcePluggable=true

Loading…
Cancel
Save