w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to start gui application on startup in linux ubuntu

You do not start GUI applications in /usr/include/init.d. Those are system daemons that have nothing to do with GUI. If you want to start an application on start of X session, you have to look at a manpage for Xsession instead.

http://manpages.ubuntu.com/manpages/natty/man5/Xsession.5.html

For example, my ~/.xsession is

xkbset r rate 250 25
startfluxbox

here xkbset is run under my user, as if I started it. It actually has access to DISPLAY and other X resources, something that system daemons never do. For system-wide, this is in /etc/X11/Xsession.d or whatever your system uses.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.