Hi,
i want to start my qt application automatically when the user logged in.
i am using RHEL 5 server linux.
Could any one have any idea..
thankx in advance..
@qtlinuxnewbie
Hi,
i want to start my qt application automatically when the user logged in.
i am using RHEL 5 server linux.
Could any one have any idea..
thankx in advance..
@qtlinuxnewbie
in /etc/X11/ run your script u can override your application before the desktop came but no window manager ... just go through this init.d .. it will give u clear idea ...
this path /etc/X11/xinit/xinitrc.d/ ... run a script that execute your code ...
"Behind every great fortune lies a crime" - Balzac
DO any one have sample scripts, any examples, any links for the above details..
hey ... a simple linux script to run your qt application ... its very easy ...
"Behind every great fortune lies a crime" - Balzac
i am new to this.
could you give me some sample script.
alright here goes ...
Qt Code:
#!/bin/sh USAGE="usage: $0 {start|stop}"; usage() { echo $USAGE >&2 } ss_start() { cd /usr/local/qtsoft/bin ./my_qt_app & } ss_stop() { killall -9 my_qt_app } case $1 in start) ss_start ;; stop) ss_stop ;; *) usage exit 1 ;; esacTo copy to clipboard, switch view to plain text mode
"Behind every great fortune lies a crime" - Balzac
so to start your script just run "script_name.sh start" in the console ...
"Behind every great fortune lies a crime" - Balzac
thnk u very much..
everything was fine.
But when i restart my system and log in.
i am getting the following error: your session only lasted less than 10 sec......
,,,,,
....
actually my task is
when i loggd in .. my app shuld start.
but i am not getting this instead above error.
and not able to loggd in .. when i del the .sh file using failsafe session. i am able to log in
could you guide me ..
thnkz in advance
I normally bung the startup scripts in /etc/init.d/myscript
and run chkconfig to sort out the rc links.
We probably should not be discussing linux booting in this forum though.
Bookmarks