--- a/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py Sun Apr 11 18:45:10 2021 +0200 @@ -190,10 +190,12 @@ code.append('X-KDE-PluginInfo-EnabledByDefault=true') # step 2b: Unity entries - if self.typeComboBox.currentIndex() == 2: - if self.unityShortcutsEdit.text(): - code.append('X-Ayatana-Desktop-Shortcuts=' + - self.unityShortcutsEdit.text()) + if ( + self.typeComboBox.currentIndex() == 2 and + self.unityShortcutsEdit.text() + ): + code.append('X-Ayatana-Desktop-Shortcuts=' + + self.unityShortcutsEdit.text()) # step 3: action entries actions = [act for act in self.actionsEdit.text().split(";") if act]