mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
AUR desktop entry file refactored
This commit is contained in:
17
aur/panel_entry.py
Normal file
17
aur/panel_entry.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generates a .desktop file based on the current python version. Used for AUR installation
|
||||
import sys
|
||||
|
||||
desktop_file = """
|
||||
[Desktop Entry]
|
||||
Type = Application
|
||||
Name = fpakman
|
||||
Categories = System;
|
||||
Comment = Manage your Flatpak / Snap applications
|
||||
Exec = /usr/bin/fpakman --tray=0
|
||||
Icon = /usr/lib/python{version}/site-packages/fpakman/resources/img/logo.svg
|
||||
"""
|
||||
|
||||
py_version = "{}.{}".format(sys.version_info.major, sys.version_info.minor)
|
||||
|
||||
with open('fpakman.desktop', 'w+') as f:
|
||||
f.write(desktop_file.format(version=py_version))
|
||||
Reference in New Issue
Block a user