changing AUR main desktop entry name

This commit is contained in:
Vinicius Moreira
2019-07-31 12:23:13 -03:00
parent afa86abf16
commit e00d41cb6f

View File

@@ -6,7 +6,7 @@ from pathlib import Path
desktop_file = """ desktop_file = """
[Desktop Entry] [Desktop Entry]
Type = Application Type = Application
Name = fpakman ({desc}) Name = fpakman{desc}
Categories = System; Categories = System;
Comment = Manage your Flatpak / Snap applications Comment = Manage your Flatpak / Snap applications
Exec = /usr/bin/fpakman{param} Exec = /usr/bin/fpakman{param}
@@ -16,10 +16,10 @@ Icon = /usr/lib/python{version}/site-packages/fpakman/resources/img/logo.svg
py_version = "{}.{}".format(sys.version_info.major, sys.version_info.minor) py_version = "{}.{}".format(sys.version_info.major, sys.version_info.minor)
with open('fpakman.desktop', 'w+') as f: with open('fpakman.desktop', 'w+') as f:
f.write(desktop_file.format(desc='panel', version=py_version, param=' --tray 0')) f.write(desktop_file.format(desc='', version=py_version, param=' --tray 0'))
with open('fpakman_tray.desktop', 'w+') as f: with open('fpakman_tray.desktop', 'w+') as f:
f.write(desktop_file.format(desc='tray', version=py_version, param='')) f.write(desktop_file.format(desc=' ( tray )', version=py_version, param=''))
# cleaning the old fpakman.desktop entry model -> the following lines will be removed for the next releases # cleaning the old fpakman.desktop entry model -> the following lines will be removed for the next releases