Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: mbertrand on July 18, 2012, 08:58:12 AM
-
We have a control program built in QT to run on x. I need this program to automatically start as the main program instead of tiny cores desktop.
What would be the best way to auto login and achieve this?
-
Edit .xsession and replace the "$DESKTOP" line with your replacement.
-
Thanks I'll try that but what about auto login. I'm new to Linux!.
Thanks.
-
autologin is the default.
-
That's right I forgot, thanks. I'm trying it now. I'm almost finished configuring my system!!!
-
Problem, I replaced the $DESKTOP with name of my program with full path and now I have a black screen with blinking caret
-
Oops sorry my mystake!!
-
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
I know I'm becomming a pain!
This is my .xsession.
I replaced $DESKTOP with my program but touch no longer working
"/home/tc/PT455.sh" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ -x ./.mouse_config ] && ./.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d ".X.d" ] && find ".X.d" -type f -print | while read F; do . "$F"; done
killall xvtouch
#xvtouch /dev/input/event1 &
xvtouch /dev/input/by-id/usb-Hampshire_Company_TSHARC_Analog_Resistive-event-if00 &
x11vnc -gui tray &
-
OK, I moved my touch screen lines back up and after waitforx
So now my application is running on boot with touch screen enabled. But I just realized that when I close my application I'm at the Tiny Core desktop I was expecting to be at a prompt. I'm I running my application over the desktop?
-
[Am] I running my application over the desktop?
Yes, you are running your application over the desktop. (I'm assuming that ~/.xsession looks about like Reply #7 on your machine.)
This:
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
starts Xvesa.
This:
[ -x ./.setbackground ] && ./.setbackground
configures the root pane.
This:
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
starts wbar if it is installed.
-
Thanks for the detailed explanation.