Unsolved Qt-4.8.6 App hanged when run through scripts .
-
Hi.
I am using Qt 4.8.6 version deployed on SDR Board adrv9361Step1:
First procedure I am using to run my application is follows which is working fine:Ctrl + Alt + F1 cd /home/analog/Desktop ./Myapplication -qws
I want to run my application automatically though scripts
Step 2 :
Second procedure I written scripts to run auto start.#!/bash/sh sudo chvt 1 cd /home/analog/Desktop ./myApplication -qws
This technique failed because this scripts is running in tty7
My application gets open but hanged.
The reason in my mind is that scripts is running in tty7 and my application need to run in tty1 so first I need to open tty1 and close tty7.
Now how I can close tty7 and run tty1 thorugh scripts? -
Hi,
Is that script part of your system startup ?
-
@SGaist
Yes I have included in startup list. Therefore it opens the application but application did not work. it gets hang.Can I close the tty7 and open tty1 thorugh terminal?
-
Can I close the tty7 and open tty1 thorugh terminal?
I'm not sure if that is possible.
But why does your program rely on tty1? What do you do inside so it hangs on other tty's?
Regards
-
@aha_1980
I am using qt4.8.6 version an deployed on sdr board.
As you know there is limitation that we have to open through -qws
like./myapplication -qws
this -qws is need to run in tty1 therefor i need to shift tty7 to tty1
-
Well, one way could be to modify your system setup so that it does not create that many tty.
What are you using for system startup ? systemd ? initd ?
-
I am using systemd.
-
Then I would check systemd's recommandation to start an application.