Basically, I need run a graphical program after the user logins.
I tried adding a "test line" to ~/.xinitrc or to ~/xprofile but nothing happens:
exec /usr/bin/gedit &
I need to run my app in the "most used" desktop managers, that is why I'm trying to use X11.
What can I do?
If you are using "desktop managers", then they may overlook .xinitrc
, using .xsession
instead. The .xinitrc
file is used mainly by startx
, while xdm
uses .xsession
.
A quick check of gdm
and kdm
shows that they accomplish the same thing using differently-named files. So "most used" may be difficult to achieve.
Here are a few related questions:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.