178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
-
-
-
-
-
+
+
+
+
+
-
+
|
except Exception as e: #access denied - either 'file in use'
if not os.path.exists(gtk_dir + "/" + fn): # or missing file system rights
log.THEME_INSTALL("Copy Gtk theme engine error ", e)
self.parent.status('<span background="orange">â›” Set theme unsuccessful. - Check access rights!</span>', timeout=22, markup=1)
self.clear_theme(ls, dll)
return
else:
if conf.windows:
log.THEME_INSTALL("Copy Gtk theme engine error, gtk_dir= " + gtk_dir)
self.parent.status('<span background="orange">â›” Set theme unsuccessful. - Check ' + gtk_dir + '</span>', timeout=22, markup=1)
self.clear_theme(ls, dll)
return
if conf.windows:
log.THEME_INSTALL("Copy Gtk theme engine error, gtk_dir= " + gtk_dir)
self.parent.status('<span background="orange">â›” Set theme unsuccessful. - Check ' + gtk_dir + '</span>', timeout=22, markup=1)
self.clear_theme(ls, dll)
return
# enable
if dll and conf.windows:
if dll:
self.clear_dll(dll)
conf.theme = base[0]
self.apply_theme(True)
conf.save()
# delete theme files if application failed
|