Fix installation and .desktop issues

Signed-off-by: somas95 <manuel.genoves@gmail.com>
gh-pages
somas95 2018-03-04 15:52:29 +01:00
parent 33813baa8e
commit c7a018177b
2 changed files with 9 additions and 6 deletions

View File

@ -130,11 +130,14 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
desktop_file = move_desktop_file(self.root, target_data, self.prefix)
update_desktop_file(desktop_file, target_pkgdata, target_scripts)
compile_schemas(self.root, target_data)
try:
os.remove("/usr/bin/uberwriter")
os.symlink(target_scripts + "uberwriter", "/usr/bin/uberwriter")
except:
print("Couldn't remove old symlink or installing new symlink didn't work.")
# TODO:Remove this
#
# try:
# os.remove("/usr/bin/uberwriter")
# os.symlink(target_scripts + "uberwriter", "/usr/bin/uberwriter")
# except:
# print("Couldn't remove old symlink or installing new symlink didn't work.")
##################################################################################
###################### YOU SHOULD MODIFY ONLY WHAT IS BELOW ######################

View File

@ -6,4 +6,4 @@ Exec=uberwriter %U
Icon=/usr/share/uberwriter/media/uberwriter.svg
Terminal=false
Type=Application
MimeType=text/x-markdown;text/plain;asdas/dkwodw;
MimeType=text/x-markdown;text/plain;