cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch weston wayland terminal application soon after the GUI is booted up,

darla14
Senior

Hello,

I have to run a c application after the STM32MPU has booted up ( not before that).

Is there a way to launch the terminal application with custom shell script running on it?

How ?

what is the name of the terminal application?

May be I can put that in the /etc/profile.d/<some_shell_script>

for normal ubuntu system it is generally xterm or gnome.What is it for OpenSTLinux?

Br,

D

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

Hello @darla14​ ,

To run the wayland terminal of the demo from your console, you can run:

/usr/bin/weston-terminal

The script that launch the demo at start is "/usr/local/demo/demo_launcher.py" and this script is called by "/usr/local/weston-start-at-startup/start_up_demo_launcher.sh"

Be careful to launch the weston-terminal once the wayland/framework is running.

Page of the wiki related to the demo:

https://wiki.st.com/stm32mpu/wiki/GTK_demo_launcher

This page explains how to add new application, but maybe you will find something else that can help you.

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Erwan SZYMANSKI
ST Employee

Hello @darla14​ ,

You are right, you can absolutely launch your personal script after the boot with putting it in /etc/profile.d/ folder. This folder will run each script that is inside it in alphabetic order (that is why I advice you to name it zz1-<script_name>.sh or something like this, if other scripts are present in this folder by default, to be sure that yours will be launched the last.

For example, if you placed your binary application in /usr/bin folder, your script will be something like:

#!/bin/sh

(cd /usr/bin && ./<your_bin>)

Hope it will help you.

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Kevin HUBER
ST Employee

Hello @darla14​ ,

To run the wayland terminal of the demo from your console, you can run:

/usr/bin/weston-terminal

The script that launch the demo at start is "/usr/local/demo/demo_launcher.py" and this script is called by "/usr/local/weston-start-at-startup/start_up_demo_launcher.sh"

Be careful to launch the weston-terminal once the wayland/framework is running.

Page of the wiki related to the demo:

https://wiki.st.com/stm32mpu/wiki/GTK_demo_launcher

This page explains how to add new application, but maybe you will find something else that can help you.

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.