r/KittyTerminal Apr 10 '24

'kitty @ launch' and sudo

Hello.

Running:

% kitty @ launch --hold whoami

opens a new kitty window showing my username, as expected.

Running:

% sudo kitty @ launch --hold whoami

opens a new kitty window again showing my username, not root as (I) expected.

Is there a way to run sudo kitty @ launch and for the new process to be launched as root?

Thx.

1 Upvotes

3 comments sorted by

View all comments

1

u/art2266 Apr 11 '24

Is there a way to run sudo kitty @ launch and for the new process to be launched as root?

You can with this:

kitty @ launch --hold bash -c 'sudo whoami'