This file is indexed.

/usr/bin/gwibber-accounts is in gwibber 3.4.0-0ubuntu4.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env python
#
# Copyright (C) 2010 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (C) 2010 Ken VanDine <ken.vandine@canonical.com>
#
# Launch script for Gwibber Accounts
#

import sys
from os.path import join, dirname, exists, realpath, abspath
from dbus.mainloop.glib import DBusGMainLoop
import gettext
from gettext import lgettext as _
if hasattr(gettext, 'bind_textdomain_codeset'):
    gettext.bind_textdomain_codeset('gwibber','UTF-8')
gettext.textdomain('gwibber')

from gi.repository import Gtk, Wnck


######################################################################
# Options 
from optparse import OptionParser, SUPPRESS_HELP
parser = OptionParser()
parser.add_option("-d", "--debug", action="store_true",
                  dest="debug", default=False, 
                  help=_("Log debug messages"))
parser.add_option("-a", "--select-account", action="store",
                  dest="selected_account", default=None, 
                  help=_("Account to select"))
parser.add_option("-c", "--condition", action="store",
                  dest="condition", default=None,
                  help=_("Condition, valid values are info, warning or error"))
parser.add_option("-m", "--message", action="store",
                  dest="message", default=None,
                  help=_("Message to display explaining the condition"))
parser.add_option("--migrate-couch", action="store_true",
                  dest="migrate_couch", default=False,
                  help=SUPPRESS_HELP)

(options, args) = parser.parse_args()

if options.selected_account:
  selected_account = options.selected_account
else:
  selected_account = None
if options.condition:
  condition = options.condition
else:
  condition = None
if options.message:
  message = options.message
else:
  message = None

if options.debug:
  debuglog = True
else:
  debuglog = False

######################################################################
# Setup path
######################################################################
LAUNCH_DIR = abspath(sys.path[0])
SOURCE_DIR = join(LAUNCH_DIR, "..", "gwibber")

# If we were invoked from a Gwibber source directory add that as the
# preferred module path ...
if exists(join(SOURCE_DIR, "accounts.py")):
  sys.path.insert(0, realpath(dirname(SOURCE_DIR)))
  try:
    from gwibber.microblog.util.log import setup_logging
    setup_logging(False, debuglog)
    import logging
    logger = logging.getLogger("Accounts")
    logger.info("Running from the source tree")
    from gwibber import accounts
  finally:
    del sys.path[0]
else:
  from gwibber.microblog.util.log import setup_logging
  setup_logging(False, debuglog)
  import logging
  logger = logging.getLogger("Accounts")
  logger.info("Running from the system path")
  from gwibber import accounts

if options.migrate_couch:
  print "migrate_couch"
  from gwibber.microblog.util import couchmigrate
  couchmigrate.AccountCouchMigrate()
  quit()

######################################################################
# Don't run again if we are already running
progname = "gwibber-accounts"
screen = Wnck.Screen.get_default()
while Gtk.events_pending():
  Gtk.main_iteration()
for w in screen.get_windows():
  if w.get_application().get_name() == progname:
    import time
    w.move_to_workspace(screen.get_active_workspace())
    w.activate(int(time.time()))
    print int(time.time())
    quit()

######################################################################


DBusGMainLoop(set_as_default=True)
accounts.GwibberAccountManager(selected_account=selected_account, condition=condition, message=message)
Gtk.main()