@@ -227,14 +227,9 @@ FocusScope {
227 GlobalShortcut {
227 GlobalShortcut {
228 shortcut: Qt.ControlModifier|Qt.AltModifier|Qt.Key_T
228 shortcut: Qt.ControlModifier|Qt.AltModifier|Qt.Key_T
229 onTriggered: {
229 onTriggered: {
230− const termAppName = "ubuntu-terminal-app";
230+ // Try snap first, then deb package
231− var termInfo = root.applicationManager.findApplication(termAppName);
231+ if (!priv.startApp("ubuntu-terminal-app_ubuntu-terminal-app")) {
232− if (termInfo) {
232+ priv.startApp("ubuntu-terminal-app");
233− if (!termInfo.focused) {
234− root.applicationManager.requestFocusApplication(termAppName);
237− root.applicationManager.startApplication(termAppName);
@@ -243,6 +238,14 @@ FocusScope {
244 objectName: "DesktopStagePrivate"
239 objectName: "DesktopStagePrivate"
241+ function startApp(appId) {
242+ if (root.applicationManager.findApplication(appId)) {
243+ return root.applicationManager.requestFocusApplication(appId);
245+ return root.applicationManager.startApplication(appId) !== null;
246 property var focusedAppDelegate: null
249 property var focusedAppDelegate: null
247 property var foregroundMaximizedAppDelegate: null // for stuff like drop shadow and focusing maximized app by clicking panel
250 property var foregroundMaximizedAppDelegate: null // for stuff like drop shadow and focusing maximized app by clicking panel