Skip to content

Commit

Permalink
Merge pull request #2062 from City-busz/default-terminal
Browse files Browse the repository at this point in the history
Read default terminal from settings
  • Loading branch information
charlesg99 authored Apr 2, 2024
2 parents 5b175af + 640ac02 commit 1c6c6a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import * as Utils from './utils.js';
import * as PanelSettings from './panelSettings.js';
import * as Taskbar from './taskbar.js';
import * as Progress from './progress.js';
import {DTP_EXTENSION, SETTINGS, DESKTOPSETTINGS, EXTENSION_PATH} from './extension.js';
import {DTP_EXTENSION, SETTINGS, DESKTOPSETTINGS, TERMINALSETTINGS, EXTENSION_PATH} from './extension.js';
import {gettext as _, ngettext} from 'resource:///org/gnome/shell/extensions/extension.js';

//timeout names
Expand Down Expand Up @@ -1803,7 +1803,7 @@ export const MyShowAppsIconMenu = class extends PopupMenu.PopupMenu {

this._appendItem({
title: _('Terminal'),
cmd: ['gnome-terminal']
cmd: [TERMINALSETTINGS.get_string('exec')]
});

this._appendItem({
Expand Down
3 changes: 3 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let extensionSystem = Main.extensionManager;
export let DTP_EXTENSION = null;
export let SETTINGS = null;
export let DESKTOPSETTINGS = null;
export let TERMINALSETTINGS = null;
export let PERSISTENTSTORAGE = null;
export let EXTENSION_UUID = null;
export let EXTENSION_PATH = null;
Expand Down Expand Up @@ -76,6 +77,7 @@ export default class DashToPanelExtension extends Extension {
DTP_EXTENSION = null;
SETTINGS = null;
DESKTOPSETTINGS = null;
TERMINALSETTINGS = null;
panelManager = null;

if (!reset) {
Expand Down Expand Up @@ -122,6 +124,7 @@ function _enable(extension) {

SETTINGS = extension.getSettings('org.gnome.shell.extensions.dash-to-panel');
DESKTOPSETTINGS = new Gio.Settings({schema_id: 'org.gnome.desktop.interface'});
TERMINALSETTINGS = new Gio.Settings({schema_id: 'org.gnome.desktop.default-applications.terminal'})
EXTENSION_UUID = extension.uuid
EXTENSION_PATH = extension.path

Expand Down

0 comments on commit 1c6c6a0

Please sign in to comment.