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.xsessioninstead. The.xinitrcfile is used mainly bystartx, whilexdmuses.xsession.A quick check of
gdmandkdmshows that they accomplish the same thing using differently-named files. So "most used" may be difficult to achieve.Here are a few related questions: