📄 globals.py
字号:
# vim: ts=4:sw=4:expandtab## BleachBit## Copyright (C) 2009 Andrew Ziem## http://bleachbit.sourceforge.net#### This program is free software: you can redistribute it and/or modify## it under the terms of the GNU General Public License as published by## the Free Software Foundation, either version 3 of the License, or## (at your option) any later version.## ## 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/>.import gettextimport osAPP_VERSION = "0.3.0"APP_NAME = "BleachBit"# Debian, Ubuntulicense_filename = "/usr/share/common-licenses/GPL-3"if not os.path.exists(license_filename): # openSUSE 1.11 license_filename = "/usr/share/doc/packages/bleachbit/COPYING"if not os.path.exists(license_filename): # Mandriva license_filename = "/usr/share/doc/bleachbit/COPYING"if not os.path.exists(license_filename): # CentOS, Fedora, RHEL license_filename = "/usr/share/doc/bleachbit-" + APP_VERSION + "/COPYING"options_dir = os.path.expanduser("~/.config/bleachbit/")options_file = os.path.join(options_dir, "bleachbit.ini")update_check_url = "http://bleachbit.sourceforge.net/communicate.php"socket_timeout = 10# Setting below value to false disables update notification (useful# for packages in repositories).online_update_notification_enabled = True# application iconif os.path.exists("bleachbit.png"): appicon_path = "bleachbit.png" print "debug: appicon_path = '%s'" % (appicon_path, )else: appicon_path = "/usr/share/pixmaps/bleachbit.png"# locale directoryif os.path.exists("./locale/"): # local locale locale_dir = os.path.abspath("./locale/") print "debug: locale_dir = '%s'" % (locale_dir, )else: # installed locale locale_dir = "/usr/share/locale/"try: gettext.bindtextdomain('bleachbit', locale_dir) gettext.textdomain('bleachbit') gettext.install('bleachbit', locale_dir, unicode=1)except: print "Warning: gettext() failed so translations will be unvailable" def _(msg): """Dummy replacement for gettext""" return msg
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -