Startup-Programs folder in cubic environment

Asked by Joe Maier

Hello

Would ike to add some shell scripts to the Startup-Programs folder of the cubic environment
(in order to be started automatically during startup of the remastered system from USB).

Under Linux Mint this is: /home/mint/.config/autostart

Question:
What is the corresponding folder of a cubic environment?

Thank's a lot!

Joe

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Cubic PPA
Solved:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

You are looking for the following folder:

    /etc/skel

Create a path named ".config/autostart/" under here, and add your script.

(Make sure your script is executable).

The "skel" directory is short for "Skeleton" because it is used as a skeleton or basis for new users.

Whenever a new user is created, the files in the /erc/skel directory are copied to the new user's home directory.

Note that the user "mint" is just a new user created by the live environment.

Revision history for this message
Joe Maier (joe890) said :
#2

Thanks for the help!

The shell scripts are present in .config/autostart of the remastered ISO (I copied them before in /erc/skel )
but they are not "executed" (like they are in a native Linux-System:(

11801748 4 -rwxrwxrwx 1 root root 26 Mar 25 08:20 Desktop-Linux-Setup-Scripts__setxkbmap.sh

[content of Desktop-Linux-Setup-Scripts__setxkbmap.sh]
#!/bin/sh
setxkbmap ch

What I am doing wrong?

Joe

Revision history for this message
Best Cubic PPA (cubic-wizard) said :
#3

Files placed in /etc/skel are meant to be copied to the user's home directory.

For example...
    /home/joemaier/
...or for the Ubuntu Live Environment...
    /home/ubuntu/
...or for the Linux Mint Live Environment...
    /home/mint/

You should put your autostart *.desktop file in...
    /etc/skel/.config/autostart (to be copied to the user's home directory)
...or in...
    /etc/xdg/autosrart (the global location for all users)

The autostart *.desktop file should ~invoke~ your script.
Because script should be in a standard place that the autostart *.desktop file can point to, I suggest placing your script in /opt.
Make sure your *.sh file is executable!

Take a look at this answer...

https://askubuntu.com/questions/1344336/cubic-custom-iso-which-executes-shell-script-at-startup/1344607#1344607

The autostart file has two formats. I'm not sure which format Linux Mint is using.

When you get to step 5 of this answer, pick the autostart format that matches the format used by the other files in /etc/xdg/autosrart.

Revision history for this message
Joe Maier (joe890) said :
#4

Thank you very much for your continued and detailed help! Everthing works now like a charme:)

Regards,
Joe

Revision history for this message
Joe Maier (joe890) said :
#5

Thanks Cubic PPA, that solved my question.