diff --git a/01-fedora-print-manager.js b/01-fedora-print-manager.js deleted file mode 100644 index 526225e..0000000 --- a/01-fedora-print-manager.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - 01-fedora-print-manager.js - Add NM plasmoid to the systray - Copyright (C) 2010-2012 Kevin Kofler - - 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 . - - Portions lifted from 01-kubuntu-10.04.js: - Harald Sitter, apachelogger@ubuntu.com 2010-04-02 - Jonathan Riddell, jriddell@ubuntu.com 2010-02-18 - Copyright Canonical Ltd, may be copied under the GNU GPL 2 or later -*/ - -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", "printmanager"); - print("Print manager plasmoid added to the systray"); - break; - } - if (systrayFound) break; -} -if (!systrayFound) - print("No systray found"); diff --git a/kde-print-manager.spec b/kde-print-manager.spec index 1a28f66..aeb4abe 100644 --- a/kde-print-manager.spec +++ b/kde-print-manager.spec @@ -12,8 +12,6 @@ URL: https://projects.kde.org/projects/kde/kdeutils/print-manager %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/print-manager-%{version}.tar.xz -# Plasma init/upgrade script -Source1: 01-fedora-print-manager.js BuildRequires: cmake BuildRequires: gettext @@ -74,9 +72,6 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} -# show print-manager plasmoid by default -#install -m644 -p -D %{SOURCE1} %{buildroot}%{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/01-fedora-print-manager.js - %files %{_bindir}/kde-add-printer @@ -89,7 +84,6 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{_datadir}/plasma/plasmoids/org.kde.plasma.printmanager/ %{_datadir}/printmanager/ %{_datadir}/applications/*.desktop -#{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/01-fedora-print-manager.js %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig