Repository navigation
Command Line
ski [location...]| Argument | Result |
|---|---|
| none | Opens the folder set in Settings → General → Open Ski in. The default is the folder the command runs in. |
| a folder | Opens that folder. A relative path is resolved against the folder the command runs in. |
| a file | Opens the folder that holds the file and selects the file. |
a file:// URI |
Same as the path it names. Launchers pass dropped files this way. |
| a server address | Connects to the server and opens the folder. See Servers for the address forms. |
| several locations | The first opens in this window, each other one in a window of its own. |
Examples:
ski # the folder the command runs in
ski ~/Downloads # a folder
ski ~/Downloads/report.pdf # a folder, with report.pdf selected
ski sftp://me@example.com/srv # a folder on an SSH server
ski smb://nas/media # a Windows or NAS shareWhen Settings → General → Open Ski in is set to Restore last tabs and a folder is given on the command line, Ski opens that folder and keeps the saved tabs for the next launch without a folder.
With Settings → General → Keep running in the background switched on (the default), the first ski process stays running after its last window closes. A later ski command hands its request to that process over a socket in $XDG_RUNTIME_DIR and exits, and the window opens without loading the program and the graphics driver again. If the background process already shows a window, the new command opens its own window as a separate process.
Switching the setting off makes each command a process of its own that exits when its window closes.
A background process that belongs to a different build of Ski (after an update) exits and a new one starts.
These arguments are for the desktop, not for daily use.
| Command | Purpose |
|---|---|
ski --portal |
Serves the D-Bus interfaces org.freedesktop.impl.portal.FileChooser and org.freedesktop.FileManager1. D-Bus starts it when a program asks. See Desktop Integration. |
ski --resident |
The background process described above. ski starts it by itself. |
ski --chooser ... |
One file dialog window. The portal starts it for each request. |
ski --chooser prints the chosen items as file:// URIs, one per line, and exits with status 0. When the dialog is cancelled it prints nothing and exits with status 1.
| Option | Value | Meaning |
|---|---|---|
--mode |
open, folder, save, save-files
|
What to choose. See The file dialog. |
--multiple |
none | Allow choosing several items in open mode. |
--title |
text | Window title. |
--accept |
text | Label of the confirm button. |
--folder |
path | Folder to start in. |
--name |
text | File name to suggest in save mode. |
--file |
path | A file to be saved in save-files mode. Repeat for each file. Only the last path component is used. |
--filter |
label<TAB>pattern<TAB>... |
A filter. Each pattern is g:*.png (a glob) or m:image/png (a MIME type). Repeat for each filter. |
--current-filter |
number | Index of the filter selected at start, from 0. |
--choice |
id<TAB>label<TAB>initial<TAB>option-id<TAB>option-label... |
A choice the program offers, such as an encoding. |
--parent |
wayland:<handle> or x11:<window id>
|
The window of the program that asked, to attach the dialog to. |
--app-id |
text | The program that asked. Ski uses it to start in the folder that program used last. |
Example:
ski --chooser --mode save --name notes.txt --filter "$(printf 'Text\tg:*.txt\tm:text/plain')"| Variable | Effect |
|---|---|
WAYLAND_DISPLAY |
When set, Ski uses Wayland. Unset it to use X11: env -u WAYLAND_DISPLAY ski. |
LIBGL_ALWAYS_SOFTWARE=1 |
Draws without the graphics card. Use it when the window stays blank, for example in a virtual machine. |
SKI_ENGINE |
ski-docker only: docker (default) or podman. |
SKI_IMAGE |
ski-docker only: the image to run. |