Added a condition around the local file removal logic to only do it if the .desktop file exists somewhere other than the user's local directory structure.
This commit is contained in:
parent
8392acfa8e
commit
8050294021
@ -750,6 +750,7 @@ class pluginclass( object ):
|
||||
|
||||
os.system('gnome-desktop-item-edit ' + file_path)
|
||||
|
||||
if file_path != widget.desktopFile:
|
||||
if filecmp.cmp(widget.desktopFile, file_path):
|
||||
try:
|
||||
os.remove(file_path)
|
||||
|
Loading…
Reference in New Issue
Block a user