我在 ~/.config/autostart 中放了一个 .desktop 文件:
[Desktop Entry]
Type=Application
Exec=sslocal >log 2>&1
Path=/etc/shadowsocks
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Run Code Online (Sandbox Code Playgroud)
尽管 sslocal 按预期运行,但它没有生成日志文件。