Name = "SaraFem" 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"] [Source] Git = "{GitHost}/SaraFem" Include = ["*.py", "requirements.txt", "assets/**"] 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" 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" # In your own folder where xdg-desktop-portal is new enough (1.17+); in # /usr/share, through pkexec, on older systems. Target = "{PortalsDir}/SaraFem.portal" Option = "FilePicker" Root = "Auto" [[IniEdits]] Platform = "Linux" File = "{ConfigHome}/xdg-desktop-portal/{PortalsConf}" Section = "preferred" Key = "org.freedesktop.impl.portal.FileChooser" Value = "SaraFem;{DesktopPortal}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"