Accepting request 1181773 from home:seijikun:branches:network:utilities

Fix Wireshark Super User Mode starter

OBS-URL: https://build.opensuse.org/request/show/1181773
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=437
This commit is contained in:
Robert Frohl 2024-06-24 13:23:40 +00:00 committed by Git OBS Bridge
parent f26cdc9bd9
commit 6e058ef03a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 19 12:34:54 UTC 2024 - Markus Ebner <info@ebner-markus.de>
- Fix Wireshark Super User Mode starter
-------------------------------------------------------------------
Wed May 15 19:55:19 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -216,7 +216,7 @@ install -d -m 0755 %{buildroot}%{_mandir}/man1/
# desktop file
cp resources/freedesktop/%{org_name}.desktop %{buildroot}%{_datadir}/applications/%{org_name}-su.desktop
sed -i -e 's|Name=Wireshark|Name=Wireshark - Super User Mode|g' %{buildroot}%{_datadir}/applications/%{org_name}-su.desktop
sed -i -e 's|Exec=wireshark %{f}|Exec=xdg-su -c wireshark %{f}|g' %{buildroot}%{_datadir}/applications/%{org_name}-su.desktop
sed -i -e 's|^Exec=wireshark|Exec=xdg-su -c wireshark|g' %{buildroot}%{_datadir}/applications/%{org_name}-su.desktop
%suse_update_desktop_file %{org_name}
%suse_update_desktop_file %{org_name}-su