forked from bilelmoussaoui/Hardcode-Tray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py.in
40 lines (38 loc) · 1.75 KB
/
const.py.in
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
# pylint: skip-file
"""
Fixes Hardcoded tray icons in Linux.
Author : Bilal Elmoussaoui ([email protected])
Contributors : Andreas Angerer, Joshua Fogg
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
Licence : The script is released under GPL, uses a modified script
form Chromium project released under BSD license
This file is part of Hardcode-Tray.
Hardcode-Tray 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.
Hardcode-Tray 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 Hardcode-Tray. If not, see <http://www.gnu.org/licenses/>.
"""
from os import getenv, path
from platform import machine
from HardcodeTray.tools import detect_de, get_themes
DB_FOLDER = path.join("@DATA_DIR@", "database", "")
USERNAME = getenv("SUDO_USER") or getenv("USER")
USERHOME = path.expanduser("~" + USERNAME)
BACKUP_FOLDER = path.join(USERHOME, ".config", "Hardcode-Tray", "")
CONFIG_FILE = path.join(USERHOME, ".config", "hardcode-tray.json")
KDE_CONFIG_FILE = path.join(USERHOME, ".config",
"plasma-org.kde.plasma.desktop-appletsrc")
BACKUP_FILE_FORMAT = "%Y-%m-%d %H:%M:%S"
LOG_FILE_FORMAT = "%Y-%m-%d %H:%M:%S"
ARCH = machine()
THEMES_LIST = get_themes(USERHOME)
DE = ["i3", "cinnamon", "budgie", "deepin", "pantheon",
"gnome", "kde", "unity", "mate", "xfce"]
DESKTOP_ENV = detect_de(DE)
ICONS_SIZE = [16, 22, 24]