Hello community, here is the log from the commit of package xfce4-panel for openSUSE:Factory checked in at 2018-12-18 14:59:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xfce4-panel (Old) and /work/SRC/openSUSE:Factory/.xfce4-panel.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xfce4-panel" Tue Dec 18 14:59:21 2018 rev:66 rq:658938 version:4.12.2 Changes: -------- --- /work/SRC/openSUSE:Factory/xfce4-panel/xfce4-panel.changes 2018-02-27 16:59:40.592316114 +0100 +++ /work/SRC/openSUSE:Factory/.xfce4-panel.new.28833/xfce4-panel.changes 2018-12-18 15:01:21.509983625 +0100 @@ -1,0 +2,6 @@ +Mon Dec 17 05:28:15 UTC 2018 - Maurizio Galli <[email protected]> + +- Added subpackage for script to restore panel defaults + https://lists.opensuse.org/opensuse-xfce/2018-12/msg00014.html + +------------------------------------------------------------------- New: ---- xfce4-panel-restore-defaults xfce4-panel-restore-defaults.desktop ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfce4-panel.spec ++++++ --- /var/tmp/diff_new_pack.wQMMx3/_old 2018-12-18 15:01:22.025982853 +0100 +++ /var/tmp/diff_new_pack.wQMMx3/_new 2018-12-18 15:01:22.029982847 +0100 @@ -28,7 +28,10 @@ Url: http://docs.xfce.org/xfce/xfce4-panel/start Source: http://archive.xfce.org/src/xfce/xfce4-panel/4.12/%{name}-%{version}.tar.bz2 Source1: %{name}-rpmlintrc +Source2: %{name}-restore-defaults +Source3: %{name}-restore-defaults.desktop BuildRequires: ed +BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gtk-doc BuildRequires: intltool @@ -64,6 +67,7 @@ Requires: libgarcon-data # uses exo-open Requires: exo-tools +Requires: %{name}-restore-defaults BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -108,6 +112,15 @@ %description branding-upstream This package provides the upstream look and feel for xfce4-panel. +%package restore-defaults +Summary: Script to restore Xfce Panel Defaults +Group: System/GUI/XFCE +Requires: zenity + +%description restore-defaults +This package provides a script %{_bindir}/%{name}-restore-defaults which calls allows to restore the Xfce Panel factory defaults. +A desktop file and application launcher is provided. + %lang_package %prep @@ -129,6 +142,12 @@ %install %make_install +install -m0755 %{SOURCE2} %{buildroot}/%{_bindir}/%{name}-restore-defaults + +desktop-file-install \ +--dir=%{buildroot}%{_datadir}/applications \ +%{SOURCE3} + rm -f %{buildroot}%{_libdir}/*.la \ %{buildroot}%{_libdir}/xfce4/panel/plugins/*.la \ %{buildroot}%{_datadir}/xfce4/xfce4-panel/README.gtkrc-2.0 @@ -225,4 +244,8 @@ %defattr(-,root,root) %config %{_sysconfdir}/xdg/xfce4/panel/default.xml +%files restore-defaults +%{_bindir}/xfce4-panel-restore-defaults +%{_datadir}/applications/%{name}-restore-defaults.desktop + %changelog ++++++ xfce4-panel-restore-defaults ++++++ #! /bin/bash if zenity --width=200 --height=200 --question --text="Do you want to restore the Xfce Panel default settings? (Requires log-out)"; then echo "yes"; xfce4-panel --quit pkill xfconfd mv ~/.config/xfce4/panel ~/.config/xfce4/panel_$(date +%F-%T).bak mv ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml_$(date +%F-%T).bak xfce4-panel & zenity --width=200 --height=200 --warning --text="Please log out of the system to apply." xfce4-session-logout else echo "no"; fi ++++++ xfce4-panel-restore-defaults.desktop ++++++ [Desktop Entry] Name=Restore Panel Defaults Comment=Restore Xfce Panel default settings. Exec=xfce4-panel-restore-defaults Icon=xfce4-panel Type=Application Categories=Settings;DesktopSettings;
