Changing 'register_app.py' to generate the .desktop file to local dir

This commit is contained in:
Vinicius Moreira
2019-06-24 15:08:13 -03:00
parent cc8b5f39af
commit 009503fa36

View File

@@ -18,7 +18,7 @@ apps_path = '{}/.local/share/applications'.format(str(Path.home()))
if not os.path.exists(apps_path):
os.mkdir(apps_path)
file_path = '{}/fpakman.desktop'.format(apps_path)
file_path = 'fpakman.desktop'.format(apps_path)
with open(file_path, 'w+') as f:
f.write(desktop_file)