Skip to main content
darla14
Associate III
February 16, 2022
Solved

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

  • February 16, 2022
  • 2 replies
  • 10963 views

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

This topic has been closed for replies.
Best answer by Kevin HUBER

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

2 replies

Erwan SZYMANSKI
ST Technical Moderator
February 17, 2022

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
Kevin HUBERBest answer
ST Employee
February 17, 2022

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 'Best answer' on the reply which solved your issue or answered your question.