Don't recursively clean an activity if it's a symbolic link #444
This commit is contained in:
parent
50a253b1b9
commit
d22b52434b
@ -350,6 +350,12 @@ class ActivityBundle(Bundle):
|
|||||||
return install_path
|
return install_path
|
||||||
|
|
||||||
def uninstall(self, install_path, force=False):
|
def uninstall(self, install_path, force=False):
|
||||||
|
if os.path.islink(install_path):
|
||||||
|
# Don't remove the actual activity dir if it's a symbolic link
|
||||||
|
# because we may be removing user data.
|
||||||
|
os.unlink(install_path)
|
||||||
|
return
|
||||||
|
|
||||||
xdg_data_home = os.getenv('XDG_DATA_HOME',
|
xdg_data_home = os.getenv('XDG_DATA_HOME',
|
||||||
os.path.expanduser('~/.local/share'))
|
os.path.expanduser('~/.local/share'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user