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