Remove desktop icon for xdg install
This commit is contained in:
@@ -577,14 +577,6 @@ def xdgInstall():
|
|||||||
else:
|
else:
|
||||||
print(f"Error {exCode}: Could not install menu desktop file")
|
print(f"Error {exCode}: Could not install menu desktop file")
|
||||||
|
|
||||||
exCode = subprocess.call(
|
|
||||||
["xdg-desktop-icon", "install", "--novendor", "./novelwriter.desktop"]
|
|
||||||
)
|
|
||||||
if exCode == 0:
|
|
||||||
print("Installed icon desktop file")
|
|
||||||
else:
|
|
||||||
print(f"Error {exCode}: Could not install icon desktop file")
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
# Install MimeType
|
# Install MimeType
|
||||||
@@ -932,11 +924,6 @@ if __name__ == "__main__":
|
|||||||
# General Installers
|
# General Installers
|
||||||
# ==================
|
# ==================
|
||||||
|
|
||||||
if "launcher" in sys.argv:
|
|
||||||
sys.argv.remove("launcher")
|
|
||||||
print("The 'launcher' command has been replaced by 'xdg-install'.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if "xdg-install" in sys.argv:
|
if "xdg-install" in sys.argv:
|
||||||
sys.argv.remove("xdg-install")
|
sys.argv.remove("xdg-install")
|
||||||
if hostOS == OS_WIN:
|
if hostOS == OS_WIN:
|
||||||
|
|||||||
Reference in New Issue
Block a user