LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2023, 04:43 PM   #1
inputOverride
LQ Newbie
 
Registered: Jun 2023
Posts: 1

Rep: Reputation: 0
Matchbox window manager how to open application in current instance


Hi,

So I am setting up a new HMI device that runs a custom Yocto image with a basic X11 setup no desktop or anything.

In the file /usr/bin/mini-x-session there is the following two lines:

matchbox-terminal&
exec matchbox-window-manager

Now the terminal that opens up works and I can launch my other UI windows and so on without issue.

But lets set that at bootup I have a cron job that runs a script in the background that delays 10 minutes from bootup. This script then wants to open a new UI on top of the current terminal window that opened at bootup.

I know I can use:

startx /home/root/application

But I think that opens a new X11 instance as I use xset in the beginning to stop the display from turning off after 10min and once I use startx the display will once again turn on after 10min

Is this the proper way to start up an application inside an existing matchbox-window-manager instance?

For example the matchbox-window-manager has a keyboard shortcut to open a new matchbox-terminal. If I press that it will open the new terminal and then I can close that window and see the previous screen/terminal that was open.

Thats what I want to acheive. My display is 0.0 if that makes any difference.

Sorry if I am not super knowledgeable about this stuff I am new to HMI devices like this.
 
Old 06-21-2023, 09:06 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,391

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
I have no experience with Yocto, but I suggest to try prefacing the launching of the application in the cron job with DISPLAY=:0. This has worked for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't ping or ssh to the cirros instance of the openstack instance visuharsha Linux - Networking 0 12-21-2017 01:44 PM
Postfix multiple instance only default instance work Dante K Linux - Server 0 09-05-2017 09:45 AM
[SOLVED] Switch to instance instead of creating a new instance of a program javascriptninja Linux - Newbie 8 01-28-2012 03:39 PM
Matchbox window manager thejonmoore Linux - Laptop and Netbook 2 12-10-2006 12:19 PM
Music Matchbox for RedHat 9 slidermx Linux - Software 2 10-20-2003 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration