From b41e843aa087ee0153b184b59575f0ebb6461064 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Wed, 17 Jul 2019 15:49:04 +0200 Subject: [PATCH] Fix default favorites not being created --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index a6dc6ff..da5b884 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -1261,8 +1261,11 @@ class pluginclass(object): def buildFavorites(self): try: path = os.path.join(home, ".linuxmint/mintMenu/applications.list") + if os.path.isdir(path): + # dir created by a bug in mint 19.2 beta + os.system("rm -rf %s" % path) if not os.path.exists(path): - os.system("mkdir -p " + path) + os.system("mkdir -p ~/.linuxmint/mintMenu") os.system("cp /usr/lib/linuxmint/mintMenu/applications.list " + path) applicationsList = open(path).readlines()