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: Use a file format that's supported. |
| 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 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).
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”Folder).