Skip to content

Build your personal knowledge base with Trilium Notes

730 B
Raw Blame
[Desktop Entry]
<%=
Object.entries({
    "Name": productName,
    "Comment": description,
    "Keywords": "Trillium;",
    "Exec": `${typeof desktopExec !== "undefined" ? desktopExec : name} %U`,
    "Icon": typeof id !== "undefined" ? id : name,
    "Type": "Application",
    "StartupNotify": "true",
    "StartupWMClass": name,
    "Categories": categories?.length ? `${categories.join(";")};` : undefined,
    "MimeType": mimeType?.length ? `${mimeType.join(";")};` : undefined,
    "Actions": "new-window;"
})
.map(line => line[1] ? line.join("=") : undefined)
.filter(line => !!line)
.join("\n")%>

[Desktop Action new-window]
Name=New Window
Exec=<%= typeof desktopExec !== "undefined" ? desktopExec : name %> --new-window