|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 27.45 GB of 70.42 GB (38.98%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
lib/
python2.7/
dist-packages/
DistUpgrade/
- drwxr-xr-x
|
Viewing file: theme-switch-helper.py (1.71 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#!/usr/bin/python # # This is a helper for the ReleaseUpgrader. it will need to be called # like this: # os.system("sudo -u %s theme-switch-helper.py", os.environ["SUDO_USER"]) # to make sure that it is run in the users session #
import gconf import subprocess from optparse import OptionParser
parser = OptionParser() parser.add_option("-g", "--get", action="store_true", dest="get", help="get the current gnome/gtk theme settings") parser.add_option("-s", "--set", dest="set", help="set the current gnome/gtk theme settings") parser.add_option("-d", "--defaults", dest="defaults", action="store_true", help="set gtk/gnome settings to save defaults") (options, args) = parser.parse_args()
client = gconf.client_get_default()
if options.get: # get current settings gtk_theme = client.get_string("/desktop/gnome/interface/gtk_theme") icon_theme = client.get_string("/desktop/gnome/interface/icon_theme") metacity_theme = client.get_string("/apps/metacity/general/theme") print gtk_theme print icon_theme print metacity_theme
if options.defaults: # set to save defaults client.set_string("/desktop/gnome/interface/gtk_theme","Human") client.set_string("/desktop/gnome/interface/icon_theme","Human") client.set_string("/apps/metacity/general/theme","Human")
if options.set: (gtk_theme, icon_theme, metacity_theme) = open(options.set).read().strip().split("\n") print gtk_theme print icon_theme print metacity_theme client.set_string("/desktop/gnome/interface/gtk_theme", gtk_theme) client.set_string("/desktop/gnome/interface/icon_theme", icon_theme) client.set_string("/apps/metacity/general/theme", metacity_theme)
|