LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Starting an application on X by console (https://www.linuxquestions.org/questions/programming-9/starting-an-application-on-x-by-console-275651/)

tiagomadeira 01-09-2005 06:41 AM

Starting an application on X by console
 
Maybe this is a bash problem. If somebody can help me...

Cedrik 01-09-2005 07:20 AM

Try to change the X test like :

Code:

# is X running on display 0 ?
if [ -f /tmp/.X0-lock ]; then
    # X is running
    dialog=/opt/kde/bin/kdialog
else
    dialog=/bin/dialog
fi



All times are GMT -5. The time now is 10:05 AM.