Skip to main content

Command Line

The command line application allows running Linux shell commands or scripts to make customizations.

Configuration

General Settings
Setting
Value
Explanation
Autostart

Yes

No

Select whether the application should start automatically after login.

Hide icon

Yes

Hide on desktop

No

Yes:

Hide the application icon.

Hide on desktop:

Remove the icon from the desktop; it'll appear only in the menu and Run dialog.

Show the application icon.

Show the application icon

Custom icon File name

Here, assign a custom icon to the application.

Save the icon on the openthinclient server in the folder: <Manager-Home>/nfs/root/custom/icons

Use a file format that's supported. .png or .ico . Use a size of 32 × 32 or 64 × 64 px.

After closing the application

Leave settings unchanged.

Restart the application.

Log out the user

Restart the thin client

Shut down the thin client

Shut down ThinClient with a cancel dialog

Perform action after the running program finishes.

Application settings
Setting
Value
Explanation
Command line Shell command

Command executed in a shell when the application starts.

Use environment variables, e.g., user-defined variables $CUSTOM1 to $CUSTOM3, name of the ThinClient $HOSTNAME or the logged-in user $USER.

To ensure intended functions and effects, escape control characters manually when entering text. To do this, insert a backslash \ .

Elevated privileges

Allow sudo

Normal user rights


Notes and tips

Execute multiple commands

To execute multiple commands in the command line, write them ; .

To execute a second command only if the previous command succeeds, chain the commands with && (instead of a semicolon).

Example:
sudo mount -t cifs //server/share /mnt/ -o username=X,password=Y,gid=1000,uid=1000,rw && depriv zenity --info --text "Laufwerk wurde verbunden"
Running Your Own Scripts

Instead of individual commands, run a custom script. Save the script in the Custom folder under rootfs to import it into the ThinClient’s file system (see the article Custom Folder).