-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathgenerate_desktop_files
executable file
·49 lines (40 loc) · 1.27 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
49
#!/usr/bin/python3
DOMAIN = "mintwelcome"
PATH = "/usr/share/linuxmint/locale"
import os
import gettext
from mintcommon import additionalfiles
os.environ['LANGUAGE'] = "en_US.UTF-8"
gettext.install(DOMAIN, PATH)
prefix = """[Desktop Entry]
Exec=mintwelcome
Icon=mintwelcome
Terminal=false
Type=Application
Encoding=UTF-8
Categories=GNOME;GTK;Settings;DesktopSettings;
NotShowIn=KDE;
StartupNotify=false
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintwelcome.desktop", prefix, _("Welcome Screen"), _("Introduction to Linux Mint"), "")
prefix = """[Desktop Entry]
Exec=mintwelcome
Icon=mintwelcome
Terminal=false
Type=Application
Encoding=UTF-8
OnlyShowIn=KDE;
Categories=System;
StartupNotify=false
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/kde4/mintwelcome.desktop", prefix, _("Welcome Screen"), _("Introduction to Linux Mint"), "", genericName=_("Welcome Screen"))
prefix = """[Desktop Entry]
Exec=xdg-open apt://mint-meta-codecs?refresh=yes
Icon=applications-multimedia
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;AudioVideo;Audio;
StartupNotify=false
"""
additionalfiles.generate(DOMAIN, PATH, "mint-meta-codecs.desktop", prefix, _("Install Multimedia Codecs"), _("Add all the missing multimedia codecs"), "")