explain the candidates order with a comment
commit738283a5216e1b8e4b9139590b334588f097d4d7
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateMon 27 Mar 2017, 17:20 (10 years ago)
parent19760ba
qml/Stage/Stage.qml+1
@@ -227,6 +227,7 @@ FocusScope {
227227 GlobalShortcut {
228228 shortcut: Qt.ControlModifier|Qt.AltModifier|Qt.Key_T
229229 onTriggered: {
230+ // try in this order: snap pkg, new deb name, old deb name
230231 var candidates = ["ubuntu-terminal-app_ubuntu-terminal-app", "ubuntu-terminal-app", "com.ubuntu.terminal"];
231232 for (var i = 0; i < candidates.length; i++) {
232233 if (priv.startApp(candidates[i]))