mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
rename “sudo” option as “pkexec” since sudo was replaced with pkexec (#271)
This commit is contained in:
@@ -11,7 +11,7 @@ export default class FreeipmiUtil extends CommandLineUtil {
|
||||
// --comma-separated-output: pseudo csv output format, splitting on comma may be good enough for the values we read.
|
||||
this._argv = path ? [path, '--comma-separated-output'] : null;
|
||||
|
||||
if (this._argv && exec_method === 'sudo')
|
||||
if (this._argv && exec_method === 'pkexec')
|
||||
{
|
||||
const pkexec_path = GLib.find_program_in_path('pkexec');
|
||||
this._argv = pkexec_path ? [pkexec_path].concat(this._argv) : null;
|
||||
|
||||
@@ -93,7 +93,7 @@ var FreonPrefsWidget = new GObject.registerClass(class Freon_FreonPrefsWidget ex
|
||||
this._addComboBox({
|
||||
items : {
|
||||
'direct' : _('Direct'),
|
||||
'sudo' : 'sudo' },
|
||||
'pkexec' : 'pkexec' },
|
||||
key: 'exec-method-freeipmi', y : i++, x : j + 1,
|
||||
label: ''
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user