/usr/share/pyshared/mousetrap/app/environment.py is in gnome-mousetrap 0.4-2ubuntu1.
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 | # -*- coding: utf-8 -*-
# MouseTrap
#
# Copyright 2009 Flavio Percoco Premoli
#
# This file is part of mouseTrap.
#
# MouseTrap is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License v2 as published
# by the Free Software Foundation.
#
# mouseTrap 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 mouseTrap. If not, see <http://www.gnu.org/licenses/>.
""" Holds mouseTrap internal information. """
__id__ = "$Id$"
__version__ = "$Revision$"
__date__ = "$Date$"
__copyright__ = "Copyright (c) 2008 Flavio Percoco Premoli."
__license__ = "GPLv2"
import sys
import os
import gtk
## MouseTrap's PID
pid = os.getpid()
## mouseTrap Version
version = "0.4"
## "--prefix" parameter used when configuring the build.
prefix = "/usr"
## The package name (should be "mousetrap").
package = "mousetrap"
## The name of the data directory (usually "share").
datadirname = "%s/share" % prefix
## Directly mouseTrap data dir
mTDataDir = "%s/mouseTrap" % datadirname
## The username
# username = os.getlogin()
## The current running desktop manager.
try:
dbusd.bus.get_object("org.gnome.SessionManager", "/")
desktop = "gnome"
except:
desktop = "other"
## The name of the O.S
osName = os.name
## The application's path
appPath = os.path.dirname(__file__)
## The user's home directory
home = os.path.expanduser("~")
## Configurations dir
configPath = home + "/.mousetrap/"
## Configurations dir
configPath = "%s/.mousetrap/" % home
## Scripts Path
scriptsPath = "%s/scripts/" % configPath
## Profiles Path
profilesPath = "%s/profiles/" % scriptsPath
## The config file
configFile = configPath + "userSettings.cfg"
## The debug file
debugFile = configPath + "mouseTrap.debug"
## The language path
langPath = "%s/locale/" % datadirname
## Screen Resolution
screen = { 'width' : gtk.gdk.screen_width(),
'height' : gtk.gdk.screen_height()}
## Mose Movement Modes
mouseModes = { }
###################################################
# #
# MOUSETRAP'S STATES DEFINITION #
# #
###################################################
## Mousetrap is active and the mouse pointer can be moved
ACTIVE = "active"
## Mousetrap is active and the click dialog is not hidden.
CLKDLG = "clk-dialog"
|