以 root 身份登录后运行脚本

以 root 身份登录后运行脚本

我想在 GDM 中以普通用户身份登录后以 root 身份运行脚本。

谢谢

答案1

我将命令添加到 中~/.xprofile,因为它必须在登录后运行,并且它使用 X11。现在,它可以工作了。

相关内容