diff --git a/Programs/SaraFem/Manifest.toml b/Programs/SaraFem/Manifest.toml index 131d152..ff60a16 100644 --- a/Programs/SaraFem/Manifest.toml +++ b/Programs/SaraFem/Manifest.toml @@ -1,5 +1,6 @@ Name = "SaraFem" -Description = "Desktop file manager that understands SaraTag Books, and can stand in as the system file picker." +Description = "Desktop file manager that understands SaraTag Books, and (on Linux) can stand in as the system file picker." +Platforms = ["Linux", "Windows"] # The portal reads its descriptors and preferences once at startup. RestartUnits = ["xdg-desktop-portal.service"] @@ -12,37 +13,47 @@ Exclude = ["Packaging"] [Python] RequirementsFile = "requirements.txt" +# The file picker (xdg-desktop-portal) and default file manager (mimeapps.list) +# are Linux things; Windows has no equivalent SaraFem can plug into. [[Options]] +Platform = "Linux" Id = "FilePicker" Label = "Use SaraFem as the system file picker (asks for your password: the portal file lives in /usr/share)" Default = true [[Options]] +Platform = "Linux" Id = "DefaultFileManager" Label = "Make SaraFem the default file manager" Default = false +# Linux: a launcher, a desktop entry, and the file picker's portal service. [[Templates]] +Platform = "Linux" Source = "Launch.sh" Target = "{AppDir}/Packaging/Launch.sh" # where PortalService.py looks for it Executable = true [[Templates]] +Platform = "Linux" Source = "SaraFem.desktop" Target = "{ApplicationsDir}/SaraFem.desktop" [[Templates]] +Platform = "Linux" Source = "PortalService.service" Target = "{DBusServicesDir}/org.freedesktop.impl.portal.desktop.SaraFem.service" Option = "FilePicker" [[Templates]] +Platform = "Linux" Source = "SaraFem.portal" Target = "/usr/share/xdg-desktop-portal/portals/SaraFem.portal" Option = "FilePicker" Root = true [[IniEdits]] +Platform = "Linux" File = "{ConfigHome}/xdg-desktop-portal/{Desktop}-portals.conf" Section = "preferred" Key = "org.freedesktop.impl.portal.FileChooser" @@ -50,23 +61,33 @@ Value = "SaraFem;{Desktop};gtk;" Option = "FilePicker" [[IniEdits]] +Platform = "Linux" File = "{ConfigHome}/mimeapps.list" Section = "Default Applications" Key = "inode/directory" Value = "SaraFem.desktop" Option = "DefaultFileManager" +# Windows: a Start Menu shortcut (pythonw.exe Main.py, from the app folder). +[[Shortcuts]] +Platform = "Windows" +Name = "SaraFem" +Script = "Main.py" +Icon = "assets/Icon.png" + [[Leftovers]] Path = "{CacheHome}/SaraFem" Kind = "Runtime" Note = "thumbnail cache" [[Leftovers]] +Platform = "Linux" Path = "{ConfigHome}/SaraFem" Kind = "Config" Note = "old pre-SaraSuite config location" # Shared with the other Flet programs; see Programs/FletIdentity.py. [[Templates]] +Platform = "Linux" Source = "../../FletIdentity.py" Target = "{ProgramDir}/FletIdentity.py"