You are not logged in.
Hey!
Is it possible to disable Empathy automatically starting on startup?
I've found something in the Ubuntu forums:
http://askubuntu.com/questions/67414/is … g-on-login
But I cannot find /etc/xdg/autostart/telepathy-indicator.desktop.
Thank you!
Sam
Last edited by smohr (2012-07-27 12:38:32)
Offline
Have a look in ~/.config/autostart and see if empathy is being autostarted there.
Burninate!
Offline
Unfortunately, there is no file in ~/.config/autostart.
Do you have another advice?
Thanks!
Offline
Try gnome-session-properties to check for start-up applications. Or, just set your status to "Not Available" (assuming you're using Gnome-Shell) and keep it that way.
Offline
in gnome-session-properties, there is no entry for empathy or telepathy.
an if I set my status to "Not Available", it will be reset to "available" on restart.
What is the problem, there must be a script starting empathy anywhere, mustn't it?
Offline
Which task is starting empathy in gnome 3.4?
How does gnome start it subprocesses expect the startup files in ~/.config/autostart and /etc/xdg/autostart?
Hasn't anyone an answer?
Offline
I have solved it.
Here are the python2 scripts
Execute on startup (found here: http://www.linuxquestions.org/questions … ut-724453/ )
#!/usr/bin/env python
#Author: Seamus Phelan
#This program runs a custom command/script just before gnome shuts
#down. This is done the same way that gedit does it (listening for
#the 'save-yourself' event). This is different to placing scipts
#in /etc/rc#.d/ as the script will be run before gnome exits.
#If the custom script/command fails with a non-zero return code, a
#popup dialog box will appear offering the chance to cancel logout
#
#Usage: 1 - change the command in the 'subprocess.call' in
# function 'session_save_yourself' below to be what ever
# you want to run at logout.
# 2 - Run this program at every gnome login (add via menu System
# -> Preferences -> Session)
#
#
import sys
import subprocess
import datetime
import gnome
import gnome.ui
import gtk
class Namespace: pass
ns = Namespace()
ns.dialog = None
def main():
prog = gnome.init ("gnome_save_yourself", "1.0", gnome.libgnome_module_info_get(), sys.argv, [])
client = gnome.ui.master_client()
#set up call back for when 'logout'/'Shutdown' button pressed
client.connect("save-yourself", session_save_yourself)
client.connect("shutdown-cancelled", shutdown_cancelled)
def session_save_yourself( *args):
#Lets try to unmount all truecrypt volumes
retcode = subprocess.call("/usr/bin/python2 /home/$USER/.scripts/logout.py", shell=True)
if retcode != 0:
#command failed
show_error_dialog()
return True
def shutdown_cancelled( *args):
if ns.dialog != None:
ns.dialog.destroy()
return True
def show_error_dialog():
ns.dialog = gtk.Dialog("There was a problem running your pre-shutdown script",
None,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
("There was a problem running your pre-shutdown script - continue logout", gtk.RESPONSE_ACCEPT))
if ns.test_mode == True:
response = ns.dialog.run()
ns.dialog.destroy()
else:
#when in shutdown mode gnome will only allow you to open a window using master_client().save_any_dialog()
#It also adds the 'Cancel logout' button
gnome.ui.master_client().save_any_dialog(ns.dialog)
#Find out if we are in test mode???
if len(sys.argv) >=2 and sys.argv[1] == "test":
ns.test_mode = True
else:
ns.test_mode = False
if ns.test_mode == True:
main()
session_save_yourself()
else:
main()
gtk.main()logout.py ( http://askubuntu.com/questions/40842/ho … thy-starts ):
#!/usr/bin/python
import os
import time
import dbus
session_bus = dbus.SessionBus()
from gi.repository import TelepathyGLib as Tp
from gi.repository import GObject
loop = GObject.MainLoop()
am = Tp.AccountManager.dup()
am.prepare_async(None, lambda *args: loop.quit(), None)
loop.run()
am.set_all_requested_presences(Tp.ConnectionPresenceType.OFFLINE, 'Offline', "")So your chat status is set to unavailable on logout. Gnome remembers your status and you will be offline on next login.
Offline