-
Notifications
You must be signed in to change notification settings - Fork 94
/
generate_desktop_files
executable file
·48 lines (36 loc) · 1.16 KB
/
generate_desktop_files
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
#!/usr/bin/python3
DOMAIN = "webapp-manager"
PATH = "/usr/share/locale"
import os
import gettext
from mintcommon import additionalfiles
os.environ['LANGUAGE'] = "en_US.UTF-8"
gettext.install(DOMAIN, PATH)
prefix = "[Desktop Entry]\n"
suffix = """Exec=webapp-manager
Icon=webapp-manager
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;Network;
StartupNotify=false
NotShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/webapp-manager.desktop", prefix, _("Web Apps"), _("Run websites as if they were apps"), suffix)
prefix = "[Desktop Entry]\n"
suffix = """Exec=webapp-manager
Icon=webapp-manager
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;Network;
X-KDE-StartupNotify=false
OnlyShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/kde4/webapp-manager.desktop", prefix, _("Web Apps"), _("Run websites as if they were apps"), suffix, genericName=_("Web Apps"))
prefix = """[Desktop Entry]
Type=Directory
"""
suffix = """Icon=applications-webapps
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/desktop-directories/webapps-webapps.directory", prefix, _("Web"), None, suffix)