Insync as Flatpak (Linux)

I was able to get Insync working in Distrobox as well. I wrote a bash script to set up the container, install Insync and start it, and have Insync automatically start upon login.

Actually, my setup requires two scripts. My bash scripting skills are not that great so, if anyone can combine these two into one script, I’d be grateful.

Here is the main script. You have to have distrobox installed already of course for this to work.

#!/bin/bash

CONTAINER_NAME=fedora-insync

# Create the toolbox container AND initial update
distrobox-create --name $CONTAINER_NAME --image fedora:latest
distrobox enter fedora-insync -- sudo dnf update -y

#Insync Repo 
distrobox enter $CONTAINER_NAME -- sudo rpm --import https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key
distrobox enter fedora-insync -- sudo bash -c 'bash -s' < create_insync_repo.sh

# Install insync within the container
distrobox enter fedora-insync -- sudo dnf update -y
distrobox enter fedora-insync -- sudo dnf install chromium insync -y

#Export Insync start script to host
distrobox enter fedora-insync -- distrobox-export --app insync  --extra-flags "start" 

#Make insync start at login
cp  ~/.local/share/applications  ~/.config/autostart/

#Start insync
distrobox enter fedora-insync -- insync start 

In order for this script to work you need another script named create_insync_repo.sh in the same directory.

Here’s what should be inside that script

#!/bin/bash

sudo echo '[insync]
name=insync repo
baseurl=http://yum.insync.io/fedora/$releasever/
gpgcheck=1
gpgkey=https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key
enabled=1' | sudo tee /etc/yum.repos.d/insync.repo

Until there is a proper Insync flatpak, I hope this helps anyone running an immutable OS needing to run Insync.

1 Like

So, having issues with your script. I gave it try, since my work around didn’t work after a few reboots in Aeon OS via tumbleweed distrobox.

Here is what i got from your script…

Container Setup Complete!
[insync]
name=insync repo
baseurl=http://yum.insync.io/fedora/$releasever/
gpgcheck=1
gpgkey=https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key
enabled=1
tee: /etc/yum.repos.d/insync.repo: No such file or directory
sudo: dnf: command not found
sudo: dnf: command not found
Application insync successfully exported.
OK!
insync will appear in your applications list in a few seconds.
cp: -r not specified; omitting directory ‘/home/profetik777/.local/share/applications’
Error: runc: exec failed: unable to start container process: exec: “insync”: executable file not found in $PATH: OCI runtime attempted to invoke a command that was not found

It might be time to go bye bye w/ Aeon OS…going to try in deb via ubuntu distrobox one last time.

Sorry I did not see this until now.

I see the following error

sudo: dnf: command not found

That sounds to me like you are not running a Fedora Distrobox Container. Did you change it to a different distribution?

I’m also in need of a Flatpak. I now use Fedora Silverblue and I won’t be able to use this product if there is no Flatpak.

+1

2 Likes

Thank you! Will definitely try it out. I’ve been layering the .rpm but obviously not great.

I wonder if this could be combined with distrobox-assemble somehow to have a ready-made solution in a config file. In the latest commits you can even automatically export the app.

This post was flagged by the community and is temporarily hidden.

Just wanting to add my voice to the request for simple steam deck install from flathub via Discover.

2 Likes

Any updates on official support for Flatpak?

1 Like

Here’s another customer requesting this, please.

Immutable distros are seen by many as the future of Linux desktop/workstation.

Not providing a flatpak would eventually put Insync at a disadvantage.

Please, please do this ASAP.

More and more people are going immutable everyday and Flatpak is the way to go.

Thanks

I’d like to add my vote here as well. I was able to install it on fedora kinoite using rpm ostree install and reference the file but i ran into issues when upgrading or rebasing because of missing repo paths for rawhide. Ultimately i’m pretty happy with the product but that only stands as long as it is useful, so please implement flatpak when possible.

rpm-ostree transaction failed with:
error: Loading sack: Updating rpm-md repo ‘insync’: cannot update repo ‘insync’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for http://yum.insync.io/fedora/rawhide/repodata/repomd.xml (IP: 2400:52e0:1a01::996:1)
maybe you’d be kind enough to add this in the mean time?

thank you
Matt

I’ve submitted a pull request to this repo that has some documentation changes. https://github.com/Xarius86/insync-distrobox

So more and more immutable distros are appearing, and more and more apps are coming to flatpak.

But still, no updates from insync about development progress.

I would throw my money at the company, if we could get a stable working flatpak in a reasonable timespan.
Would say a one time pay of 4.99 $/€ and we get a flatpak within three months? @mia :wink:

Any update on a flatpak implementation of Insync. This would facilitate distribution in the Linux community. Thank you.

3 Likes

Thank you to each and every user who has expressed their eagerness and requests to have us work (again) on Flatpak!

This is something we will revisit in the future, but at the moment, we are focused on different tasks and projects an would like to express our appreciation for your understanding. :pray:t4: Rest assured that we have not forgotten this; we value your input on why Flatpak development remains to be a highly requested endeavor!

Well, hope springs eternal, but a request for a flatpak has been her for going on seven years, so we’re not exactly holding our breath. Thank you for your response though.

Hi Mia, I think that pray for understanding, when you have delayed 7 years a community request, is not correct.

If the team is doing nothing with flatpak and snap, at least, try to mantain updated actual repositories. Opensuse Leap was released one month ago. You still don’t have the repo updated. Previous Leap repo doesn’t work anymore.

If your team do some testing, you’ll notice that Fedora 37 package works fine in openSUSE 15.6.

I don’t know about the projects that your team is working on, but I think that keep updated repos is the most important thing. For all of your customers.

Very dissapointed on how you handle the things. it’s obvious that customers opinion is trash.

Have a nice day!

Hi @mia

Missing flatpak support is a pity and it would also simplify your life alot. You cannot keep up with all the different linux distributions and versions. For a user, insync may fail at any time due to a broken dependency (as I just experienced today) and is therefore quite a risk to rely on. Furthermore, what is your recommendation to install insync on a immutable linux distribution (such as Aeon or Silverblue) without the support of flatpak?

Please reconsider your priorities, given that there’s not much missing according to this post

2 Likes

Hi @brunoerusso,

Customer feedback is one of the most important things we take into consideration when building and improving Insync. Seeing it as trash is the last thing that we want users to feel, and I would like to apologize for the issues and troubles you’ve faced while using our application.

As for Flatpak, we have explored this exhaustively in the past but have decided to shelf it (not permanently) as it presented certain issues that caused significant limitations in further developing support for it. We are happy to circle back to it as soon as our team’s resources permit since there have been plenty of input from this thread alone.

As for OpenSUSE, this is not an officially supported distribution but we have a repository for it. I’ll send your feedback to make sure that repositories are maintained. Thank you so much!

1 Like

@kusi I deeply understand your sentiments; one of the reasons why we decided to pursue Flatpak research + development was exactly for this purpose. I will be forwarding your input and upvotes to our team for serious reconsideration. Thank you for taking the time to post here :slight_smile:

3 Likes

Hi Mia, try to understand that a topic with more than 7 years it’s a lot. I think I don’t think that customer feedback is one of the most important things. Today, Flatpak is a standard for lot of applications. So, customers comments are not considered for your team.

I know that opensuse is not officially supported, but at least, in absence of Flatpak or some other package format that can include all other distros (snap, appimage), it would be interesting for the current repositories to be updated and maintained.

I hope you can consider what customers think or recommend. At last, they’re the users who uses the software.

2 Likes