[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570784: squeeze: first time users get warning about migration of config files



tags 570784 + patch
thanks

I recently discovered the autorun support in KDE, which start programs
when the user log in based on the content of /etc/xdg/autostart and
/usr/share/autostart/.  I suspect this could be used to fix this
problem.

The problem was introduced in version 1.434, with this changelog:

  * Add etc/skel/.kde/share/config/kickerrc enabling
    mediaapplet.desktop for users, to make sure the direct media
    applet is started.  The file was created by logging in and adding
    the applet to kicker.  The list of default applets in kicker is
    hardcoded in the source, so this is the only non-forking way to
    add a default applet.  The list of applications in
    share/debian-edu/common/share/apps/kicker/default-apps is
    overrided.

Using the autostart feature, I suspect it is possible to get the media
applet started for first time users by adding the appropriate desktop
file in /etc/xdg/autostart or /usr/share/autostart/.

Here is an untested patch to implement this.  The mediaapplet.desktop
was copied from /usr/share/apps/kicker/applets/mediaapplet.desktop and
all translations were dropped.  If this patch work, it only make sense
to implement in Lenny, as the mediaapplet do not exist in KDE 4.  For
Squeeze, removing the .kde/ file is the only part that make sense.

Index: etc/xdg/autostart/mediaapplet.desktop
===================================================================
--- etc/xdg/autostart/mediaapplet.desktop       (revision 0)
+++ etc/xdg/autostart/mediaapplet.desktop       (revision 0)
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=Plugin
+Comment=Directly access your storage media
+Name=Storage Media
+Icon=3floppy_unmount
+X-KDE-Library=media_panelapplet
Index: etc/skel/.kde/share/config/kickerrc
===================================================================
--- etc/skel/.kde/share/config/kickerrc (revision 63670)
+++ etc/skel/.kde/share/config/kickerrc (working copy)
@@ -1,57 +0,0 @@
-[AddAppletDialog Settings]
-Height 600=225
-Width 800=520
-
-[Applet_1]
-ConfigFile[$e]=minipager_panelapplet_myovpnqj32nfgv3z38yg_rc
-DesktopFile[$e]=minipagerapplet.desktop
-FreeSpace2=0.0963855
-WidthForHeightHint=57
-
-[Applet_2]
-ConfigFile[$e]=taskbar_panelapplet_ls4ygv7dptjlrgherfvs_rc
-DesktopFile[$e]=taskbarapplet.desktop
-FreeSpace2=0.0963855
-WidthForHeightHint=210
-
-[Applet_3]
-ConfigFile[$e]=media_panelapplet_1lkqr1mnz8ayiwqmdfim_rc
-DesktopFile[$e]=mediaapplet.desktop
-FreeSpace2=1
-WidthForHeightHint=54
-
-[Applet_4]
-ConfigFile[$e]=systemtray_panelappletrc
-DesktopFile[$e]=systemtrayapplet.desktop
-FreeSpace2=1
-WidthForHeightHint=60
-
-[Applet_5]
-ConfigFile[$e]=clock_panelapplet_hihlllunrqtcgyju1owq_rc
-DesktopFile[$e]=clockapplet.desktop
-FreeSpace2=1
-WidthForHeightHint=77
-
-[General]
-Applets2=KMenuButton_1,ServiceButton_1,ServiceButton_2,ServiceButton_3,Applet_1,Applet_2,Applet_3,Applet_4,Applet_5
-IExist=true
-UntrustedApplets=
-UntrustedExtensions=
-
-[KMenuButton_1]
-FreeSpace2=0
-
-[ServiceButton_1]
-DesktopFile[$e]=/usr/share/applications/kde/Home.desktop
-FreeSpace2=0
-StorageId[$e]=kde-Home.desktop
-
-[ServiceButton_2]
-DesktopFile[$e]=/usr/share/applications/iceweasel.desktop
-FreeSpace2=0
-StorageId[$e]=iceweasel.desktop
-
-[ServiceButton_3]
-DesktopFile[$e]=/usr/share/applications/ooo-writer.desktop
-FreeSpace2=0
-StorageId[$e]=ooo-writer.desktop

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: