fixing desktop files

This commit is contained in:
Swee 2024-09-12 17:03:56 -07:00
parent c32b7bd3b2
commit 2d0a87be8f
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[Desktop Entry]
Name=SweeCrypt GTK
Comment=Simple and fun cipher
Exec=python3 /usr/bin/sweecrypt-gtk
Exec=/usr/bin/sweecrypt-gtk
Type=Application
Icon=sweecrypt
Categories=Utility;

View file

@ -6,7 +6,7 @@ if os.name != "posix":
file = open("sweecrypt-gtk.py").read().split("\n")
open("dpkg/opt/sweecrypt-gtk.ui",'w').write(open("sweecrypt-gtk.ui").read())
file[3] = 'UI_FILE = "/opt/sweecrypt-gtk.ui"'
file.insert(0, "#!/usr/bin/env")
file.insert(0, "#!/usr/bin/env python3")
file = "\n".join(file)
open("dpkg/usr/bin/sweecrypt-gtk",'w').write(file)
os.system("chmod 1777 dpkg/usr/bin/sweecrypt-gtk")