Added desktop entry to run hardinfo under superuser

i9-old changed/i9/hardinfo-0.6-1.20230524git45fa969.el9.inferit.2
Arkady L. Shane 1 year ago
parent 72e9c70aec
commit f5b7e4142e
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -0,0 +1,19 @@
[Desktop Entry]
Name=(Superuser) System Profiler and Benchmark
Name[de]=(Superuser) System Profiler und Benchmark
Name[es]=(Superusuario) Informacion y Rendimiento del Sistema
Name[fr]=(Superutilisateur) chmarks du Système
Name[pt_BR]=(Superusuário) Informações e Testes do Sistema
Name[ru]=(Администратор) Информация о системе и тестирование
Name[tr]=(Süper kullanıcı) Sistem Bilgisi ve Karşılaştırma
Comment=(Superuser) Displays system information
Comment[de]=(Superuser) Anzeigen von Systeminformationen
Comment[ru]=(Администратор) Показывает информацию о системе
Exec=pkexec /usr/bin/hardinfo
Icon=hardinfo
Terminal=false
Type=Application
StartupNotify=true
Categories=System;
Keywords=linux;kernel;system;hardware;cpu;processor;capabilities;frequency;memory;ram;board;resources;sensors;devices;usb;pci;display;network;benchmark;test;
X-Desktop-File-Install-Version=0.26

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.pkexec.hardinfo">
<description>Run Hardinfo program</description>
<message>Authentication is required to run the Hardinfo</message>
<icon_name>accessories-text-editor</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/hardinfo</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>

@ -3,13 +3,15 @@
Name: hardinfo
Version: 0.6
Release: 1.20230524git%{shorthash}%{?dist}.inferit.1
Release: 1.20230524git%{shorthash}%{?dist}.inferit.2
Summary: System Profiler and Benchmark
License: GPLv2
URL: http://hardinfo.org/
Source0: http://download.berlios.de/hardinfo/%{name}-%{version}-%{fullhash}.tar.xz
Source1: ru.po
Source2: hardinfo-root.desktop
Source3: org.freedesktop.pkexec.hardinfo.policy
Patch1: 0001-Remove-annoyng-window-about-loading-of-needed-librar.patch
BuildRequires: cmake
@ -54,6 +56,13 @@ desktop-file-install --vendor="" --delete-original \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
${RPM_BUILD_ROOT}%{_datadir}/applications/hardinfo.desktop
install -m644 %{SOURCE2} \
${RPM_BUILD_ROOT}%{_datadir}/applications/hardinfo-root.desktop
install -d -m755 %{buildroot}%{_datadir}/polkit-1/actions
install -m644 %{SOURCE3} \
%{buildroot}%{_datadir}/polkit-1/actions
%find_lang %{name}
%files -f %{name}.lang
@ -64,8 +73,13 @@ desktop-file-install --vendor="" --delete-original \
%{_mandir}/man1/%{name}*
%{_datadir}/icons/*/*/*/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-root.desktop
%{_datadir}/polkit-1/actions/org.freedesktop.pkexec.hardinfo.policy
%changelog
* Mon Sep 4 2023 Arkady L. Shane <ashejn@msvsphere.ru> - 0.6-1.20230524git45fa969.inferit.2
- Added desktop entry to run hardinfo under superuser
* Thu Jul 27 2023 Alexey Berezhok <alexey.berezhok@msvsphere.ru> - 0.6-1.20230524git45fa969.inferit.1
- Remove annoyng window about loading of needed libraries

Loading…
Cancel
Save