[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

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

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

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]
+Comment=Directly access your storage media
+Name=Storage Media
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

Happy hacking,
Petter Reinholdtsen

Reply to: