188 self.kdeLicensEdit.text()) |
188 self.kdeLicensEdit.text()) |
189 if self.kdeEnabledDefaultCheckBox.isChecked(): |
189 if self.kdeEnabledDefaultCheckBox.isChecked(): |
190 code.append('X-KDE-PluginInfo-EnabledByDefault=true') |
190 code.append('X-KDE-PluginInfo-EnabledByDefault=true') |
191 |
191 |
192 # step 2b: Unity entries |
192 # step 2b: Unity entries |
193 if self.typeComboBox.currentIndex() == 2: |
193 if ( |
194 if self.unityShortcutsEdit.text(): |
194 self.typeComboBox.currentIndex() == 2 and |
195 code.append('X-Ayatana-Desktop-Shortcuts=' + |
195 self.unityShortcutsEdit.text() |
196 self.unityShortcutsEdit.text()) |
196 ): |
|
197 code.append('X-Ayatana-Desktop-Shortcuts=' + |
|
198 self.unityShortcutsEdit.text()) |
197 |
199 |
198 # step 3: action entries |
200 # step 3: action entries |
199 actions = [act for act in self.actionsEdit.text().split(";") if act] |
201 actions = [act for act in self.actionsEdit.text().split(";") if act] |
200 for act in actions: |
202 for act in actions: |
201 code.append('') |
203 code.append('') |