Fix handling generated .desktop files. Closes #4304.
parent
1c6b8b72cb
commit
2ff69b20df
5 changed files with 51 additions and 10 deletions
@ -0,0 +1,9 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys, shutil |
||||
|
||||
ifile = sys.argv[1] |
||||
ofile = sys.argv[2] |
||||
|
||||
os.unlink(ofile) |
||||
shutil.copy(ifile, ofile) |
@ -0,0 +1,14 @@ |
||||
dgen = find_program('desktopgenerator.py') |
||||
|
||||
desktop_in_file = custom_target('something.desktop.in', |
||||
input : ['something.desktop.in.in'], |
||||
output : 'something.desktop.in', |
||||
command : [dgen, '@INPUT@', '@OUTPUT@'], |
||||
) |
||||
|
||||
i18n.merge_file( |
||||
input : desktop_in_file, |
||||
output : 'something.desktop', |
||||
type : 'desktop', |
||||
po_dir : '../po', |
||||
) |
@ -0,0 +1,15 @@ |
||||
[Desktop Entry] |
||||
Name=Something doer |
||||
Comment=Do something |
||||
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! |
||||
Keywords=zip;tar;extract;unpack; |
||||
TryExec=file-roller |
||||
Exec=file-roller %U |
||||
StartupNotify=true |
||||
Terminal=false |
||||
Type=Application |
||||
# Translators: Do NOT translate or transliterate this text (this is an icon file name)! |
||||
Icon=something |
||||
Categories=GTK;GNOME;Utility |
||||
X-GNOME-DocPath=file-roller/file-roller.xml |
||||
X-GNOME-UsesNotifications=true |
Loading…
Reference in new issue