← Back to team overview

ayatana-commits team mailing list archive

[Branch ~agateau/plasma-widget-message-indicator/trunk] Rev 132: Added a kconf_update file to rename the plugin on existing installations.

 

------------------------------------------------------------
revno: 132
committer: Aurelien Gateau <aurelien.gateau@xxxxxxxxxxxxx>
branch nick: plasma-widget-message-indicator
timestamp: Tue 2010-03-30 17:34:11 +0200
message:
  Added a kconf_update file to rename the plugin on existing installations.
added:
  upd/
  upd/CMakeLists.txt
  upd/message_indicator_applet_rename_plugin.py
  upd/message_indicator_applet_rename_plugin.upd
  upd/test-nothing-to-dorc
  upd/test-one-applet-to-changerc
modified:
  CMakeLists.txt


--
lp:plasma-widget-message-indicator
https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk

Your team ayatana-commits is subscribed to branch lp:plasma-widget-message-indicator.
To unsubscribe from this branch go to https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk/+edit-subscription.
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2010-03-10 09:50:23 +0000
+++ CMakeLists.txt	2010-03-30 15:34:11 +0000
@@ -24,6 +24,7 @@
 
 add_subdirectory(src)
 add_subdirectory(tests)
+add_subdirectory(upd)
 
 # Packaging
 set(PROJECT_VERSION "0.5.2")

=== added directory 'upd'
=== added file 'upd/CMakeLists.txt'
--- upd/CMakeLists.txt	1970-01-01 00:00:00 +0000
+++ upd/CMakeLists.txt	2010-03-30 15:34:11 +0000
@@ -0,0 +1,5 @@
+install(FILES message_indicator_applet_rename_plugin.upd
+    DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
+
+install(PROGRAMS message_indicator_applet_rename_plugin.py
+    DESTINATION ${KCONF_UPDATE_INSTALL_DIR})

=== added file 'upd/message_indicator_applet_rename_plugin.py'
--- upd/message_indicator_applet_rename_plugin.py	1970-01-01 00:00:00 +0000
+++ upd/message_indicator_applet_rename_plugin.py	2010-03-30 15:34:11 +0000
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+import sys
+from ConfigParser import ConfigParser
+from StringIO import StringIO
+
+OLD_NAME = "indicatordisplay"
+NEW_NAME = "message-indicator"
+
+PLUGIN_OPTION = "plugin"
+
+def main():
+    # Get all content and turn nested sections into something ConfigParser can
+    # swallow
+    content = sys.stdin.read().replace("][", "///")
+
+    # Parse data
+    io = StringIO(content)
+    parser = ConfigParser()
+    parser.readfp(io)
+
+    # Replace keys where necessary
+    for section in parser.sections():
+        if not section.startswith("Containments"):
+            continue
+        if parser.has_option(section, PLUGIN_OPTION) and parser.get(section, PLUGIN_OPTION) == OLD_NAME:
+            print "[%s]" % section.replace("///", "][")
+            print "%s=%s" % (PLUGIN_OPTION, NEW_NAME)
+
+    return 0
+
+if __name__== "__main__":
+    sys.exit(main())
+# vi: ts=4 sw=4 et

=== added file 'upd/message_indicator_applet_rename_plugin.upd'
--- upd/message_indicator_applet_rename_plugin.upd	1970-01-01 00:00:00 +0000
+++ upd/message_indicator_applet_rename_plugin.upd	2010-03-30 15:34:11 +0000
@@ -0,0 +1,5 @@
+# Rename the applet from indicatordisplay to message-indicator
+Id=RenameMessageIndicatorApplet
+File=plasma-desktop-appletsrc
+Script=message_indicator_applet_rename_plugin.py,python
+Options=overwrite

=== added file 'upd/test-nothing-to-dorc'
--- upd/test-nothing-to-dorc	1970-01-01 00:00:00 +0000
+++ upd/test-nothing-to-dorc	2010-03-30 15:34:11 +0000
@@ -0,0 +1,201 @@
+[AppletGlobals][plasma_applet_systemtray]
+ShowApplicationStatus=true
+ShowCommunications=true
+ShowHardware=true
+ShowJobs=false
+ShowNotifications=false
+ShowSystemServices=true
+
+[Containments]
+JauntyUpgradeScriptRun=true
+
+[Containments][1]
+activity=
+desktop=-1
+formfactor=0
+geometry=0,0,1920,1080
+immutability=1
+location=0
+plugin=desktop
+screen=0
+wallpaperplugin=image
+wallpaperpluginmode=SingleImage
+zvalue=0
+
+[Containments][1][Wallpaper][image]
+slideTimer=10
+slidepaths=/usr/share/wallpapers/
+userswallpapers=
+wallpaper=/usr/share/wallpapers/Ethais
+wallpapercolor=56,111,150
+wallpaperposition=0
+
+[Containments][4]
+activity=
+desktop=-1
+formfactor=0
+geometry=1926,0,1280,1024
+immutability=1
+location=0
+plugin=desktop
+screen=1
+wallpaperplugin=image
+wallpaperpluginmode=SingleImage
+zvalue=0
+
+[Containments][4][Wallpaper][image]
+slideTimer=10
+slidepaths=/usr/share/wallpapers/
+userswallpapers=
+wallpaper=/usr/share/wallpapers/Ethais
+wallpapercolor=56,111,150
+wallpaperposition=0
+
+[Containments][5]
+activity=
+desktop=-1
+formfactor=2
+geometry=0,-34,1920,28
+immutability=1
+location=4
+plugin=panel
+screen=0
+zvalue=150
+
+[Containments][5][Applets][11]
+geometry=1614,1,208,27
+immutability=1
+plugin=systemtray
+zvalue=0
+
+[Containments][5][Applets][11][Configuration]
+AutoHidePopup=true
+Share=false
+alwaysShown=
+hidden=
+
+[Containments][5][Applets][11][Configuration][Applets][2]
+geometry=168,0.5,24,24
+immutability=1
+plugin=message-indicator
+zvalue=0
+
+[Containments][5][Applets][11][Configuration][Applets][2][PopupApplet]
+DialogHeight=35
+DialogWidth=132
+
+[Containments][5][Applets][11][Configuration][Applets][3]
+geometry=0,0,250,300
+immutability=1
+plugin=notifier
+zvalue=0
+
+[Containments][5][Applets][11][Configuration][ExtenderItems][1]
+extenderIconName=
+extenderItemName=jobGroup
+extenderItemPosition=0
+isCollapsed=false
+isGroup=true
+sourceAppletId=11
+sourceAppletPluginName=systemtray
+
+[Containments][5][Applets][11][Configuration][ExtenderItems][2]
+extenderIconName=
+extenderItemName=completedJobsGroup
+extenderItemPosition=0
+extenderTitle=0 tâche récemment terminée :
+groupCollapsed=false
+isCollapsed=false
+isGroup=true
+sourceAppletId=11
+sourceAppletPluginName=systemtray
+
+[Containments][5][Applets][11][LayoutInformation]
+Order=5
+
+[Containments][5][Applets][11][PopupApplet]
+DialogHeight=14
+DialogWidth=0
+
+[Containments][5][Applets][13]
+geometry=1826,1,72,27
+immutability=1
+plugin=digital-clock
+zvalue=0
+
+[Containments][5][Applets][13][Configuration][ExtenderItems][3]
+extenderIconName=view-pim-calendar
+extenderItemName=calendar
+extenderItemPosition=0
+extenderTitle=Calendar
+isCollapsed=false
+sourceAppletId=13
+sourceAppletPluginName=digital-clock
+
+[Containments][5][Applets][13][LayoutInformation]
+Order=6
+
+[Containments][5][Applets][13][PopupApplet]
+DialogHeight=237
+DialogWidth=254
+
+[Containments][5][Applets][16]
+geometry=1583,1,27,27
+immutability=1
+plugin=pastebin
+zvalue=0
+
+[Containments][5][Applets][16][Configuration]
+History=
+
+[Containments][5][Applets][16][LayoutInformation]
+Order=4
+
+[Containments][5][Applets][6]
+geometry=0,1,27,27
+immutability=1
+plugin=launcher
+zvalue=0
+
+[Containments][5][Applets][6][LayoutInformation]
+Order=0
+
+[Containments][5][Applets][6][Shortcuts]
+global=Alt+F1
+
+[Containments][5][Applets][7]
+geometry=62,1,39,27
+immutability=1
+plugin=pager
+zvalue=0
+
+[Containments][5][Applets][7][LayoutInformation]
+Order=2
+
+[Containments][5][Applets][8]
+geometry=31,1,27,27
+immutability=1
+plugin=quickaccess
+zvalue=0
+
+[Containments][5][Applets][8][LayoutInformation]
+Order=1
+
+[Containments][5][Applets][9]
+geometry=105,1,1474,27
+immutability=1
+plugin=tasks
+zvalue=0
+
+[Containments][5][Applets][9][Configuration]
+Share=false
+groupingStrategy=0
+highlightWindows=true
+showOnlyCurrentDesktop=true
+
+[Containments][5][Applets][9][LayoutInformation]
+Order=3
+
+[Containments][5][Configuration]
+maximumSize=1920,28
+minimumSize=1920,28

=== added file 'upd/test-one-applet-to-changerc'
--- upd/test-one-applet-to-changerc	1970-01-01 00:00:00 +0000
+++ upd/test-one-applet-to-changerc	2010-03-30 15:34:11 +0000
@@ -0,0 +1,201 @@
+[AppletGlobals][plasma_applet_systemtray]
+ShowApplicationStatus=true
+ShowCommunications=true
+ShowHardware=true
+ShowJobs=false
+ShowNotifications=false
+ShowSystemServices=true
+
+[Containments]
+JauntyUpgradeScriptRun=true
+
+[Containments][1]
+activity=
+desktop=-1
+formfactor=0
+geometry=0,0,1920,1080
+immutability=1
+location=0
+plugin=desktop
+screen=0
+wallpaperplugin=image
+wallpaperpluginmode=SingleImage
+zvalue=0
+
+[Containments][1][Wallpaper][image]
+slideTimer=10
+slidepaths=/usr/share/wallpapers/
+userswallpapers=
+wallpaper=/usr/share/wallpapers/Ethais
+wallpapercolor=56,111,150
+wallpaperposition=0
+
+[Containments][4]
+activity=
+desktop=-1
+formfactor=0
+geometry=1926,0,1280,1024
+immutability=1
+location=0
+plugin=desktop
+screen=1
+wallpaperplugin=image
+wallpaperpluginmode=SingleImage
+zvalue=0
+
+[Containments][4][Wallpaper][image]
+slideTimer=10
+slidepaths=/usr/share/wallpapers/
+userswallpapers=
+wallpaper=/usr/share/wallpapers/Ethais
+wallpapercolor=56,111,150
+wallpaperposition=0
+
+[Containments][5]
+activity=
+desktop=-1
+formfactor=2
+geometry=0,-34,1920,28
+immutability=1
+location=4
+plugin=panel
+screen=0
+zvalue=150
+
+[Containments][5][Applets][11]
+geometry=1614,1,208,27
+immutability=1
+plugin=systemtray
+zvalue=0
+
+[Containments][5][Applets][11][Configuration]
+AutoHidePopup=true
+Share=false
+alwaysShown=
+hidden=
+
+[Containments][5][Applets][11][Configuration][Applets][2]
+geometry=168,0.5,24,24
+immutability=1
+plugin=indicatordisplay
+zvalue=0
+
+[Containments][5][Applets][11][Configuration][Applets][2][PopupApplet]
+DialogHeight=35
+DialogWidth=132
+
+[Containments][5][Applets][11][Configuration][Applets][3]
+geometry=0,0,250,300
+immutability=1
+plugin=notifier
+zvalue=0
+
+[Containments][5][Applets][11][Configuration][ExtenderItems][1]
+extenderIconName=
+extenderItemName=jobGroup
+extenderItemPosition=0
+isCollapsed=false
+isGroup=true
+sourceAppletId=11
+sourceAppletPluginName=systemtray
+
+[Containments][5][Applets][11][Configuration][ExtenderItems][2]
+extenderIconName=
+extenderItemName=completedJobsGroup
+extenderItemPosition=0
+extenderTitle=0 tâche récemment terminée :
+groupCollapsed=false
+isCollapsed=false
+isGroup=true
+sourceAppletId=11
+sourceAppletPluginName=systemtray
+
+[Containments][5][Applets][11][LayoutInformation]
+Order=5
+
+[Containments][5][Applets][11][PopupApplet]
+DialogHeight=14
+DialogWidth=0
+
+[Containments][5][Applets][13]
+geometry=1826,1,72,27
+immutability=1
+plugin=digital-clock
+zvalue=0
+
+[Containments][5][Applets][13][Configuration][ExtenderItems][3]
+extenderIconName=view-pim-calendar
+extenderItemName=calendar
+extenderItemPosition=0
+extenderTitle=Calendar
+isCollapsed=false
+sourceAppletId=13
+sourceAppletPluginName=digital-clock
+
+[Containments][5][Applets][13][LayoutInformation]
+Order=6
+
+[Containments][5][Applets][13][PopupApplet]
+DialogHeight=237
+DialogWidth=254
+
+[Containments][5][Applets][16]
+geometry=1583,1,27,27
+immutability=1
+plugin=pastebin
+zvalue=0
+
+[Containments][5][Applets][16][Configuration]
+History=
+
+[Containments][5][Applets][16][LayoutInformation]
+Order=4
+
+[Containments][5][Applets][6]
+geometry=0,1,27,27
+immutability=1
+plugin=launcher
+zvalue=0
+
+[Containments][5][Applets][6][LayoutInformation]
+Order=0
+
+[Containments][5][Applets][6][Shortcuts]
+global=Alt+F1
+
+[Containments][5][Applets][7]
+geometry=62,1,39,27
+immutability=1
+plugin=pager
+zvalue=0
+
+[Containments][5][Applets][7][LayoutInformation]
+Order=2
+
+[Containments][5][Applets][8]
+geometry=31,1,27,27
+immutability=1
+plugin=quickaccess
+zvalue=0
+
+[Containments][5][Applets][8][LayoutInformation]
+Order=1
+
+[Containments][5][Applets][9]
+geometry=105,1,1474,27
+immutability=1
+plugin=tasks
+zvalue=0
+
+[Containments][5][Applets][9][Configuration]
+Share=false
+groupingStrategy=0
+highlightWindows=true
+showOnlyCurrentDesktop=true
+
+[Containments][5][Applets][9][LayoutInformation]
+Order=3
+
+[Containments][5][Configuration]
+maximumSize=1920,28
+minimumSize=1920,28