Flatpak build for Syncthing Tray.
NOTE:
Before submit an issue, please check whether it is a flatpak package issue or upstream Syncthing Tray issue.
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:
- Create autostart folder if it does not exist:
mkdir -p $HOME/.config/autostart
- 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/
- 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
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
The filesystem access is limited to /home
. To modify it, use Flatseal, or with command:
flatpak override io.github.martchus.syncthingtray --filesystem=<PATH>
No you don't. This package already contains the syncthing program.
They are located in ~/.var/app/io.github.martchus.syncthingtray
.
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
chmod +x ./tools/flatpak_cpan_generator.sh
./tools/flatpak_cpan_generator.sh
flatpak run org.flatpak.Builder build-dir io.github.martchus.syncthingtray.yml
flatpak run org.flatpak.Builder --user --install --force-clean build-dir io.github.martchus.syncthingtray.yml
flatpak run io.github.martchus.syncthingtray.yml