Replies: 2 comments
-
|
There isn't a command-line parameter or environment variable in Trilium to start the app minimized to the system tray. The app can show a tray icon, but doesn't support "minimize to tray" or "close to tray" behavior natively, and there are no hidden flags or startup options for this either (source, source, source). If you want this behavior, you can use a third-party utility like Trayconizer to launch Trilium and force it to minimize to the tray. This is currently the most practical workaround until the feature is implemented. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
You can start Trilium and send it to tray using AutoHotKey v1 with the script like this: ^+!9:: ; Ctrl+Alt+Shift+9: global hotkey to start trilium and send it to tray
; Full path to trilium.exe - adjust this to your installation path
TriliumPath := "C:\Users\user\Programs\trilium\trilium.exe"
Process, Exist, trilium.exe
if (ErrorLevel = 0)
{
Run, %TriliumPath%
Sleep, 2000
}
WinActivate, ahk_exe trilium.exe
WinWaitActive, ahk_exe trilium.exe, , 5
Send, !9 ;Alt+9 is trilium's shortcut for "Toggle System Tray Icon"
returnThis assumes trilium goes to tray with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since the feature of minimizing/closing of tray isn't implemented (#3743) , I thought I'll just write a wrapper script. Which whenever I end the application, automatically starts it up again, but minimized to the system tray. So I basically would get that feature.
Anybody knows if there is any parameter or environment variable to achieve that?
Beta Was this translation helpful? Give feedback.
All reactions