From bc0c8cc85cedd188363f227695a4b069b90534c9 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 1 Jan 2023 20:31:59 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index f9ec7ab..fefcc39 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1188,6 +1188,8 @@ def desktop_services(argv): try: if options.cpufreq == 0: print('launching cpufreq, need sudo') + subprocess.check_call(['sudo', 'whoami']) + services.append( subprocess.Popen(r''' exec sudo sh -c 'echo cpufreq, user; whoami; @@ -1509,7 +1511,7 @@ def socat_ssh(argv): r''' exec %s ''' % ' '.join( - ssh_command + options.gateway_command + ssh_command + [options.gateway_command] ) ) gateway.flush()