online-desktop r7247 - in trunk: . autostart pidgin



Author: marco
Date: Wed Apr 16 18:44:58 2008
New Revision: 7247
URL: http://svn.gnome.org/viewvc/online-desktop?rev=7247&view=rev

Log:
Run pidgin if accounts are configured.
Reset visibility of the buddy list on startup to False.
#527444


Added:
   trunk/autostart/im.desktop
   trunk/od-start-im
Modified:
   trunk/Makefile-session.am
   trunk/pidgin/dbus-plugin.c

Modified: trunk/Makefile-session.am
==============================================================================
--- trunk/Makefile-session.am	(original)
+++ trunk/Makefile-session.am	Wed Apr 16 18:44:58 2008
@@ -1,5 +1,11 @@
-bin_SCRIPTS += od-autostart od-session od-reset
-EXTRA_DIST += od-autostart od-session od-reset
+session_scripts = 		\
+	od-autostart		\
+	od-session		\
+	od-reset		\
+	od-start-im
+
+bin_SCRIPTS += $(session_scripts)
+EXTRA_DIST += $(session_scripts)
 
 gnomesessiondir=$(datadir)/gnome
 gnomesession_DATA = online-desktop.session
@@ -8,9 +14,9 @@
 odautostartdir=$(datadir)/online-desktop/autostart
 odautostart_DATA = \
 	autostart/bigboard.desktop \
-	autostart/browser.desktop
+	autostart/browser.desktop  \
+	autostart/im.desktop
 
 presessiondir=$(datadir)/online-desktop/presession
 presession_SCRIPTS = presession/panel-config.py
 EXTRA_DIST += $(odautostart_DATA) $(presession_SCRIPTS)
-

Added: trunk/autostart/im.desktop
==============================================================================
--- (empty file)
+++ trunk/autostart/im.desktop	Wed Apr 16 18:44:58 2008
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Pidgin
+Exec=od-start-im
+Type=Application
+Version=1.0
+X-GNOME-Autostart-enabled=true

Added: trunk/od-start-im
==============================================================================
--- (empty file)
+++ trunk/od-start-im	Wed Apr 16 18:44:58 2008
@@ -0,0 +1,4 @@
+#!/bin/sh
+if test -f "$HOME/.purple/accounts.xml"; then
+    exec pidgin
+fi

Modified: trunk/pidgin/dbus-plugin.c
==============================================================================
--- trunk/pidgin/dbus-plugin.c	(original)
+++ trunk/pidgin/dbus-plugin.c	Wed Apr 16 18:44:58 2008
@@ -559,6 +559,9 @@
 static void
 plugin_init(PurplePlugin *plugin)
 {
+    /* Hack to keep the buddy list hidden on start */
+    if (g_getenv("OD_SESSION"))
+        purple_prefs_set_bool("/pidgin/blist/list_visible", FALSE);
 
     /* Lame hack to avoid user having to manually enable this plugin;
      * we'll see how it works out...



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