mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Keep using user defined terminal by default
This commit is contained in:
@@ -693,7 +693,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"title": "Terminal",
|
"title": "Terminal",
|
||||||
"cmd": "gnome-terminal"
|
"cmd": "TERMINALSETTINGS"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "System monitor",
|
"title": "System monitor",
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ import {
|
|||||||
DTP_EXTENSION,
|
DTP_EXTENSION,
|
||||||
SETTINGS,
|
SETTINGS,
|
||||||
DESKTOPSETTINGS,
|
DESKTOPSETTINGS,
|
||||||
|
TERMINALSETTINGS,
|
||||||
EXTENSION_PATH,
|
EXTENSION_PATH,
|
||||||
} from './extension.js'
|
} from './extension.js'
|
||||||
import {
|
import {
|
||||||
@@ -2268,12 +2269,15 @@ export const MyShowAppsIconMenu = class extends PopupMenu.PopupMenu {
|
|||||||
this._appendSeparator()
|
this._appendSeparator()
|
||||||
}
|
}
|
||||||
|
|
||||||
JSON.parse(SETTINGS.get_string('context-menu-entries')).forEach((e) =>
|
JSON.parse(SETTINGS.get_string('context-menu-entries')).forEach((e) => {
|
||||||
|
if (e.cmd == 'TERMINALSETTINGS')
|
||||||
|
e.cmd = TERMINALSETTINGS.get_string('exec')
|
||||||
|
|
||||||
this._appendItem({
|
this._appendItem({
|
||||||
title: e.title,
|
title: e.title,
|
||||||
cmd: e.cmd.split(' '),
|
cmd: e.cmd.split(' '),
|
||||||
}),
|
})
|
||||||
)
|
})
|
||||||
|
|
||||||
this._appendList(
|
this._appendList(
|
||||||
SETTINGS.get_strv('panel-context-menu-commands'),
|
SETTINGS.get_strv('panel-context-menu-commands'),
|
||||||
@@ -2282,11 +2286,6 @@ export const MyShowAppsIconMenu = class extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
this._appendSeparator()
|
this._appendSeparator()
|
||||||
|
|
||||||
this._appendItem({
|
|
||||||
title: _('Gnome Settings'),
|
|
||||||
cmd: ['gnome-control-center'],
|
|
||||||
})
|
|
||||||
|
|
||||||
let lockTaskbarMenuItem = this._appendMenuItem(
|
let lockTaskbarMenuItem = this._appendMenuItem(
|
||||||
SETTINGS.get_boolean('taskbar-locked')
|
SETTINGS.get_boolean('taskbar-locked')
|
||||||
? _('Unlock taskbar')
|
? _('Unlock taskbar')
|
||||||
@@ -2299,6 +2298,11 @@ export const MyShowAppsIconMenu = class extends PopupMenu.PopupMenu {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this._appendItem({
|
||||||
|
title: _('Gnome Settings'),
|
||||||
|
cmd: ['gnome-control-center'],
|
||||||
|
})
|
||||||
|
|
||||||
let settingsMenuItem = this._appendMenuItem(_('Dash to Panel Settings'))
|
let settingsMenuItem = this._appendMenuItem(_('Dash to Panel Settings'))
|
||||||
settingsMenuItem.connect('activate', () => DTP_EXTENSION.openPreferences())
|
settingsMenuItem.connect('activate', () => DTP_EXTENSION.openPreferences())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user