mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +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;
|
||||
|
||||
Reference in New Issue
Block a user