summaryrefslogtreecommitdiff
path: root/plasma-desktop
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-29 11:38:26 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-29 11:38:26 +0200
commita898abdadd17d32c7dfa43e316db376074521a43 (patch)
tree70337bc1eb527972e1a1bdfc8d88c54c3f220c3a /plasma-desktop
parent06c674f01b7f42f0132306ab13f685741a25317e (diff)
downloadetcskel-kanotix-a898abdadd17d32c7dfa43e316db376074521a43.zip
etcskel-kanotix-a898abdadd17d32c7dfa43e316db376074521a43.tar.gz
imported changes from 1.1.0
* added plasma panel reset * new dolphin view defaults * lock plasma desktop as default * use user-desktop icon for Desktop folder * icedove and iceweasel default handler updated -- Maximilian Gerhard <maxbox@directbox.com> Sat, 24 Sep 2011 23:11:20 +0200
Diffstat (limited to 'plasma-desktop')
-rw-r--r--plasma-desktop/updates/01-kanotix-default-lock.js2
-rw-r--r--plasma-desktop/updates/01-kanotix-default-setup.js17
2 files changed, 18 insertions, 1 deletions
diff --git a/plasma-desktop/updates/01-kanotix-default-lock.js b/plasma-desktop/updates/01-kanotix-default-lock.js
new file mode 100644
index 0000000..80f258d
--- /dev/null
+++ b/plasma-desktop/updates/01-kanotix-default-lock.js
@@ -0,0 +1,2 @@
+// lock plasma desktop
+locked = true;
diff --git a/plasma-desktop/updates/01-kanotix-default-setup.js b/plasma-desktop/updates/01-kanotix-default-setup.js
index 23caaca..de6e691 100644
--- a/plasma-desktop/updates/01-kanotix-default-setup.js
+++ b/plasma-desktop/updates/01-kanotix-default-setup.js
@@ -1,4 +1,14 @@
-var activity = activityForScreen(0);
+// if desktop is locked, save current state and unlock
+var was_locked = false;
+if (locked) {
+ was_locked = true
+ locked = false
+}
+
+p = panelById(panelIds[0]);
+if (typeof p === "panel") {
+ p.remove();
+}
var panel = new Panel("panel");
panel.location = "bottom";
@@ -35,3 +45,8 @@ systray.writeConfig("plugin", "notifier");
clock = panel.addWidget("digital-clock");
clock.writeConfig("showDate", "true");
+
+// lock again, if it was locked before
+if (was_locked) {
+ locked = true
+}