[英]adding a start up via command line (Ubuntu)
Hey, I'm trying to have a graphical program and I want it to start after I log in. How do I do so? 嘿,我正在尝试使用图形程序,我希望它在登录后启动。我该如何做? I know there's a GUI program, but I want to use a command line here.
我知道有一个GUI程序,但是我想在这里使用命令行。
GUI tool: GUI工具:
http://www.thegeekstuff.com/2009/07/ubuntu-open-applications-automatically-during-system-startup/ http://www.thegeekstuff.com/2009/07/ubuntu-open-applications-automatically-during-system-startup/
now, there is update-rc.d, however, it seems to run before I log in, while the entire system loads ups (Unless I don't understand what the NN means in the update-rc.d manual). 现在,这里有update-rc.d,但是它似乎在我登录之前就已运行,而整个系统都处于加载状态(除非我不明白update-rc.d手册中NN的含义)。
Any ideas? 有任何想法吗?
There's also an autostart folder in ~/.config/autostart - which is profile (or user) specific. 〜/ .config / autostart中还有一个自动启动文件夹-这是特定于配置文件(或用户)的文件夹。 If you put a .desktop file in /etc/xdg/autostart it will become a global startup for any new users created.
如果将.desktop文件放在/ etc / xdg / autostart中,它将成为所有创建的新用户的全局启动。 This assumes you have xdg-user-dirs-gtk installed.
假设您已安装xdg-user-dirs-gtk。
将.desktop文件放入... /etc/xdg/autostart
,在Ubuntu上可能有所不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.