linuxshellsnap

How can close the terminal after starting sleek?


I have installed sleek with snap:

snap list  sleek
Name   Version  Rev   Tracking       Publisher  Notes
sleek  2.0.13   1218  latest/stable  ransome    -

Run it with snap:

snap run sleek

enter image description here

sleek started, i want to run it on background.

snap run sleek &
snap run sleek 1>/dev/null  2>&1

Both of them can start the sleek ,but i want the terminal closed after starting sleek .

enter image description here


Solution

  • When we launch a command in the background with ampersand (&), the shell session stays on, one needs to explicitly call exit:

    snap run sleek &
    exit