jgrulich pushed to plasma-pk-updates (f22). "enable org.kde.plasma.pkupdates by default, except not liveimage (#1206760)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Apr 7 10:36:23 UTC 2015
>From 146705f42a00062ebc9d53822b2e64a79d33e9d5 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Mon, 30 Mar 2015 13:47:31 -0500
Subject: enable org.kde.plasma.pkupdates by default, except not liveimage
(#1206760)
diff --git a/01-fedora-org.kde.plasma.pkupdates.js b/01-fedora-org.kde.plasma.pkupdates.js
new file mode 100644
index 0000000..785a065
--- /dev/null
+++ b/01-fedora-org.kde.plasma.pkupdates.js
@@ -0,0 +1,51 @@
+/*
+ 01-fedora-apper.js - Add Apper updater plasmoid to the systray
+ Copyright (C) 2010-2012 Kevin Kofler <kevin.kofler at chello.at>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ Portions lifted from 01-kubuntu-10.04.js:
+ Harald Sitter, apachelogger at ubuntu.com 2010-04-02
+ Jonathan Riddell, jriddell at ubuntu.com 2010-02-18
+ Copyright Canonical Ltd, may be copied under the GNU GPL 2 or later
+*/
+
+if (userDataPath() != "/home/liveuser") {
+
+systrayFound = false;
+pids = panelIds;
+for (i = 0; i < pids.length; ++i) {
+ p = panelById(pids[i]);
+ if (!p) continue;
+ ids = p.widgetIds;
+ for (j = 0; j < ids.length; ++j) {
+ w = p.widgetById(ids[j]);
+ if (!w || w.type != "systemtray") continue;
+ systrayFound = true;
+ w.currentConfigGroup = new Array("Applets");
+ max = 0;
+ for (k = 0; k < w.configGroups.length; ++k)
+ if (parseInt(w.configGroups[k]) > max)
+ max = parseInt(w.configGroups[k]);
+ w.currentConfigGroup = new Array("Applets", max + 1);
+ w.writeConfig("plugin", "org.kde.plasma.pkupdates");
+ print("plasma-pk-updates added to the systray");
+ break;
+ }
+ if (systrayFound) break;
+}
+if (!systrayFound)
+ print("No systray found");
+
+}
diff --git a/plasma-pk-updates.spec b/plasma-pk-updates.spec
index 2cd69ce..67f2b69 100644
--- a/plasma-pk-updates.spec
+++ b/plasma-pk-updates.spec
@@ -1,12 +1,15 @@
Name: plasma-pk-updates
Version: 0.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Plasma applet for system updates using PackageKit
License: GPLv2+
URL: https://github.com/caybro/plasma-pk-updates
Source0: https://github.com/caybro/plasma-pk-updates/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# enable by default
+Source1: 01-fedora-org.kde.plasma.pkupdates.js
+
# Upstream patches
Patch00: 0001-allow-installing-untrusted-packages-too.patch
Patch01: 0002-micro-optimization.patch
@@ -48,12 +51,19 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+# show plasmoid by default
+install -m644 -p -D %{SOURCE1} %{buildroot}%{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/01-fedora-org.kde.plasma.pkupdates.js
+
%files
%{_kf5_datadir}/kservices5/plasma-applet-org.kde.plasma.pkupdates.desktop
%{_kf5_qmldir}/org/kde/plasma/PackageKit/
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates
+%{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/01-fedora-org.kde.plasma.pkupdates.js
%changelog
+* Mon Mar 30 2015 Rex Dieter <rdieter at fedoraproject.org> 0.1-4
+- enable org.kde.plasma.pkupdates by default, except not liveimage (#1206760)
+
* Mon Mar 23 2015 Jan Grulich <jgrulich at redhat.com> - 0.1-3
- backport minor fixes from upstream
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/plasma-pk-updates.git/commit/?h=f22&id=146705f42a00062ebc9d53822b2e64a79d33e9d5
More information about the scm-commits
mailing list