OSDN Git Service

Initial commit
[rebornos/cnchi-gnome-osdn.git] / Cnchi / desktop_info.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 #  desktop_info.py
5 #
6 #  Copyright © 2013-2019 RebornOS
7 #
8 #  This file is part of Cnchi.
9 #
10 #  Cnchi is free software; you can redistribute it and/or modify
11 #  it under the terms of the GNU General Public License as published by
12 #  the Free Software Foundation; either version 3 of the License, or
13 #  (at your option) any later version.
14 #
15 #  Cnchi is distributed in the hope that it will be useful,
16 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 #  GNU General Public License for more details.
19 #
20 #  The following additional terms are in effect as per Section 7 of the license:
21 #
22 #  The preservation of all legal notices and author attributions in
23 #  the material or in the Appropriate Legal Notices displayed
24 #  by works containing it is required.
25 #
26 #  You should have received a copy of the GNU General Public License
27 #  along with Cnchi; If not, see <http://www.gnu.org/licenses/>.
28
29
30 """ Desktop Environments information """
31
32 # Enabled desktops
33
34 DESKTOPS = ["base", "cinnamon", "deepin",
35             "gnome", "kde", "mate", "openbox", "xfce"]
36
37 DESKTOPS_DEV = DESKTOPS + ["budgie", "enlightenment", "i3", "lxqt", "pantheon", "windows", "apricity"]
38
39 DESKTOPS_A11Y = ["gnome", "mate", "apricity"]
40
41 DESKTOP_ICONS_PATH = "/usr/share/cnchi/data/icons"
42
43 '''
44 MENU - Size appropriate for menus (16px).
45 SMALL_TOOLBAR - Size appropriate for small toolbars (16px).
46 LARGE_TOOLBAR - Size appropriate for large toolbars (24px)
47 BUTTON - Size appropriate for buttons (16px)
48 DND - Size appropriate for drag and drop (32px)
49 DIALOG - Size appropriate for dialogs (48px)
50 '''
51
52 # Descriptive names
53 NAMES = {
54     'apricity': "Original Apricity Experience",
55     'base': "Base",
56     'cinnamon': "Cinnamon",
57     'deepin': "Deepin",
58     'pantheon': "Pantheon",
59    'windows':"Windows Interface",
60     'gnome': "GNOME",
61     'kde': "KDE",
62     'mate': "MATE",
63     'openbox': "Openbox",
64     'xfce': "Xfce",
65     'budgie': "Budgie",
66     'enlightenment': "Enlightenment",
67     'i3': "i3",
68     'lxqt': "LXQt",
69 }
70
71 LIBS = {
72     'gtk': ["apricity", "cinnamon", "deepin", "pantheon", "gnome", "mate", "openbox", "xfce", "budgie", "enlightenment", "i3", "windows"],
73     'qt': ["kde", "lxqt"]
74 }
75
76 ALL_FEATURES = ["a11y", "aur", "bluetooth", "broadcom", "maintenance", "cups", "chromium", "email", "dropbox", "firefox", "firefox-developer-edition", "google-chrome", "firewire", "opera", "hardinfo", "hunspell", "vivaldi", "games", "graphics", "gtk-play", "hardinfo", "qt-play", "movie", "mycroft", "graphic_drivers", "lamp", "lts", "freeoffice", "wps-office", "libreoffice", "redshift", "power", "sshd", "spotify", "visual", "vlc", "nautilus", "nemo", "nixnote", "wallpapers", "wine"]
77
78 # Not all desktops have all features
79 EXCLUDED_FEATURES = {
80     'base': ["bluetooth", "chromium", "maintenance", "dropbox", "email", "firefox", "firefox-developer-edition", "google-chrome", "firewire", "opera", "vivaldi", "games", "graphic_drivers", "graphics", "hardinfo", "hunspell", "freeoffice", "wps-office", "libreoffice", "visual", "vlc", "nautilus", "nemo", "nixnote", "qt-play", "movie", "mycroft", "gtk-play", "qt-play", "power", "redshift", "spotify", "wallpapers", "wps-office", "libreoffice", "freeoffice"],
81     'apricity': ["lamp", "visual", "nautilus", "qt-play"],
82     'cinnamon': ["lamp", "visual", "nemo", "qt-play"],
83     'deepin': ["lamp", "visual", "qt-play"],
84     'pantheon': ["lamp", "visual", "qt-play", "nemo"],
85    'windows': ["lamp", "visual", "qt-play", "nemo"],
86     'gnome': ["lamp", "visual", "nautilus", "qt-play"],
87     'kde': ["lamp", "visual", "gtk-play"],
88     'mate': ["lamp", "visual", "qt-play"],
89     'openbox': ["lamp", "qt-play"],
90     'xfce': ["lamp", "visual", "qt-play"],
91     'budgie': ["lamp", "visual", "qt-play"],
92     'enlightenment': ["lamp", "visual", "qt-play"],
93     'i3': ["lamp", "qt-play"],
94     'lxqt': ["lamp", "visual", "gtk-play"]
95 }
96
97 # Session names for lightDM setup (/usr/share/xsessions)
98 SESSIONS = {
99     'apricity' : 'gnome',
100     'cinnamon': 'cinnamon',
101     'deepin': 'deepin',
102     'pantheon': 'pantheon',
103     'gnome': 'gnome',
104     'kde': 'plasma',
105     'mate': 'mate',
106     'openbox': 'openbox',
107     'xfce': 'xfce',
108     'budgie': 'budgie-desktop',
109     'enlightenment': 'enlightenment',
110     'i3': 'i3',
111     'lxqt': 'lxsession',
112    'windows': 'windows'
113 }
114
115
116 # See http://docs.python.org/2/library/gettext.html "22.1.3.4. Deferred translations"
117 def _(message):
118     return message
119
120
121 DESCRIPTIONS = {
122     'base': _("This option will install RebornOS as command-line only system, "
123               "without any type of graphical interface. After the installation you can "
124               "customize RebornOS by installing packages with the command-line package manager."),
125    'apricity': _("Apricity OS is a now discontinued Linux distro in the Arch Linux family that simply  "
126                         "offered a highly customized GNOME dekstop experience that combined beauty with "
127                         "funcionality. With this option, the original Apricity look and feel is finally revivied! Experience "
128                          "it now on RebornOS."),
129     'cinnamon': _("Cinnamon is a Linux desktop which provides advanced, "
130                   "innovative features and a traditional desktop user experience. "
131                   "Cinnamon aims to make users feel at home by providing them with "
132                   "an easy-to-use and comfortable desktop experience."),
133     'deepin': _("Deepin desktop is a lightweight, elegant desktop environment that "
134                 "has been commented as a mix between Windows and Macs by many of its' "
135                 "users. It was originally created for the Linux Deepin distribution. "
136                 "Now, DDE will support most Linux operating systems such as Arch "
137                 "Linux, Ubuntu, Fedora, openSUSE etc."),
138     'pantheon': _("Pantheon is the desktop environment that Elementary OS runs on. "
139                   "While true Pantheon is too unstable for RebornOS to offer, we "
140                   "have tried to offer the next best thing. By selecting Pantheon, "
141                   "you will get Elementary OS's good looks on a highly customized desktop "
142                   "running Cinnamon underneath. Through this, you will be able to run "
143                   "the majority of Elementary OS's applications and experience their "
144                   "stunning style and theming - all in a stable system."), 
145     'gnome': _("GNOME 3 is an easy and elegant way to use your "
146                "computer. It features the Activities Overview which "
147                "is an easy way to access all your basic tasks."),
148
149     'kde': _("If you are looking for a familiar working environment, KDE's "
150              "Plasma Desktop offers all the tools required for a modern desktop "
151              "computing experience so you can be productive right from the start."),
152
153     'mate': _("MATE is an intuitive, attractive, and lightweight desktop "
154               "environment which provides a more traditional desktop "
155               "experience. Accelerated compositing is supported, but not "
156               "required to run MATE making it suitable for lower-end hardware."),
157
158     'openbox': _("Not actually a desktop environment, Openbox is a highly "
159                  "configurable window manager. It is known for its "
160                  "minimalistic appearance and its flexibility. It is the most "
161                  "lightweight graphical option offered by RebornOS. Please "
162                  "Note: Openbox is not recommended for users who are new to Linux."),
163
164     'xfce': _("Xfce is a lightweight desktop environment. It aims to "
165               "be fast and low on system resources, while remaining visually "
166               "appealing and user friendly. It suitable for use on older "
167               "computers and those with lower-end hardware specifications. "),
168
169     'budgie': _("Budgie is the flagship desktop of Solus and is a Solus project. "
170                 "It focuses on simplicity and elegance. Written from scratch with "
171                 "integration in mind, the Budgie desktop tightly integrates with "
172                 "the GNOME stack, but offers an alternative desktop experience."),
173
174     'enlightenment': _("Enlightenment is not just a window manager for Linux/X11 "
175                        "and others, but also a whole suite of libraries to help "
176                        "you create beautiful user interfaces with much less work"),
177
178     'i3': _("i3 is a tiling window manager primarily targeted at advanced "
179             "users and developers."),
180
181     'lxqt': _("LXQt is the next-generation of LXDE, the Lightweight Desktop "
182               "Environment. It is lightweight, modular, blazing-fast, and "
183               "user-friendly."),
184    
185    'windows': _("While I am sure you have all heard of Windows, this option "
186                            "does NOT truly offer you straight up Windows. This is Linux after all, " 
187                            "not Microsoft. However, what this option DOES allow you to experience, "
188                            "is a Windows-like desktop running Cinnamon underneath, made to look "
189                            "and act like the Windows 10 you are already familiar with. Made with Linux "
190                           "newbies specifically in mind, this option should hopefully ensure you have "
191                           "an easy, hassle free transition to Linux.")
192 }
193
194 # Delete previous _() dummy declaration
195 del _