Skip to content

flathub/io.github.martchus.syncthingtray

Repository files navigation

Syncthing Tray

Flatpak build for Syncthing Tray.

Known flatpak related issues

NOTE:

Before submit an issue, please check whether it is a flatpak package issue or upstream Syncthing Tray issue.

Autostart not working

Syncthing Tray's autostart is implemented by install a .desktop file in ~/.config/autostart. However, due to sandboxing by flatpak, this file is placed in ~/.var/app/io.github.martchus.syncthingtray/config/autostart. Also the generated .desktop is not suitable for flatpak, it actually cannot start the application.

The workaround is to create a symlink manually:

  1. Create autostart folder if it does not exist:
mkdir -p $HOME/.config/autostart
  1. If installed as per-user application (flatpak install --user):
ln -sf $HOME/.local/share/flatpak/app/io.github.martchus.syncthingtray/current/active/export/share/applications/io.github.martchus.syncthingtray.desktop $HOME/.config/autostart/
  1. If installed as system-wide application (flatpak install):
ln -sf /var/lib/flatpak/app/io.github.martchus.syncthingtray/current/active/export/share/applications/io.github.martchus.syncthingtray.desktop $HOME/.config/autostart/

To stop from autostart, just remove the symlink:

rm $HOME/.config/autostart/io.github.martchus.syncthingtray.desktop

Syncthing Tray stuck or failed on initialize

It is likely that you have previously installed syncthing or Syncthing Tray and leave the configuration file in place.

Try to rename (or remove) these files and run the application again:

mv ~/.config/syncthingtray.ini ~/.config/syncthingtray.ini.bak
mv ~/.local/state/syncthing ~/.local/state/syncthing.bak

Cannot synchronize files outside of /home

The filesystem access is limited to /home. To modify it, use Flatseal, or with command:

flatpak override io.github.martchus.syncthingtray --filesystem=<PATH>

FAQ

Should I install syncthing alone?

No you don't. This package already contains the syncthing program.

Where is the configuration file?

They are located in ~/.var/app/io.github.martchus.syncthingtray.

Deploying

Install develop environments

flatpak install --user org.kde.Sdk/x86_64/6.7 \
    org.kde.Platform/x86_64/6.7 \
    org.freedesktop.Sdk.Extension.golang/x86_64/23.08

Generate cpan-generated-sources.json

chmod +x ./tools/flatpak_cpan_generator.sh
./tools/flatpak_cpan_generator.sh

Build the application

flatpak run org.flatpak.Builder build-dir io.github.martchus.syncthingtray.yml

Test the build

flatpak run org.flatpak.Builder --user --install --force-clean build-dir io.github.martchus.syncthingtray.yml
flatpak run io.github.martchus.syncthingtray.yml