(BLOCK (PARA (TEXT "Since there is no such thing as the one Linux, there are too many different ways to automatically start Zettelstore.")) (UNORDERED (BLOCK (PARA (TEXT "One way is to interpret your Linux desktop system as a server and use the ") (LINK-ZETTEL () "00001003600000" (TEXT "recipe to install Zettelstore on a server")) (TEXT ".")) (UNORDERED (INLINE (TEXT "See below for a lighter alternative.")))) (BLOCK (PARA (TEXT "If you are using the ") (LINK-EXTERNAL () "https://www.gnome.org/" (TEXT "Gnome Desktop")) (TEXT ", you could use the tool ") (LINK-EXTERNAL () "https://wiki.gnome.org/action/show/Apps/Tweaks" (TEXT "Tweak")) (TEXT " (formerly known as ") (FORMAT-QUOTE () (TEXT "GNOME Tweak Tool")) (TEXT " or just ") (FORMAT-QUOTE () (TEXT "Tweak Tool")) (TEXT ").") (SOFT) (TEXT "It allows to specify application that should run on startup / login."))) (BLOCK (PARA (LINK-EXTERNAL () "https://kde.org/" (TEXT "KDE")) (TEXT " provides a system setting to ") (LINK-EXTERNAL () "https://docs.kde.org/stable5/en/plasma-workspace/kcontrol/autostart/" (TEXT "autostart")) (TEXT " applications."))) (BLOCK (PARA (LINK-EXTERNAL () "https://xfce.org/" (TEXT "Xfce")) (TEXT " allows to specify ") (LINK-EXTERNAL () "https://docs.xfce.org/xfce/xfce4-session/preferences#application_autostart" (TEXT "autostart applications")) (TEXT "."))) (BLOCK (PARA (LINK-EXTERNAL () "https://www.lxde.org/" (TEXT "LXDE")) (TEXT " uses ") (LINK-EXTERNAL () "https://wiki.lxde.org/en/LXSession_Edit" (TEXT "LXSession Edit")) (TEXT " to allow users to specify autostart applications.")))) (PARA (TEXT "If you use a different desktop environment, it often helps to to provide its name and the string ") (FORMAT-QUOTE () (TEXT "autostart")) (TEXT " to google for it with the search engine of your choice.")) (PARA (TEXT "Yet another way is to make use of the middleware that is provided.") (SOFT) (TEXT "Many Linux distributions make use of ") (LINK-EXTERNAL () "https://systemd.io/" (TEXT "systemd")) (TEXT ", which allows to start processes on behalf of an user.") (SOFT) (TEXT "On the command line, adapt the following script to your own needs and execute it:")) (VERBATIM-CODE () "# mkdir -p \"$HOME/.config/systemd/user\"\n# cd \"$HOME/.config/systemd/user\"\n# cat <<__EOF__ > zettelstore.service\n[Unit]\nDescription=Zettelstore\nAfter=network.target home.mount\n\n[Service]\nExecStart=/usr/local/bin/zettelstore run -d zettel\n\n[Install]\nWantedBy=default.target\n__EOF__\n# systemctl --user daemon-reload\n# systemctl --user enable zettelstore.service\n# systemctl --user start zettelstore.service\n# systemctl --user status zettelstore.service") (PARA (TEXT "The last command should output some lines to indicate success.")))