joplin icon indicating copy to clipboard operation
joplin copied to clipboard

flatpak version

Open DOCPROF opened this issue 5 years ago • 51 comments

Operating system

  • Linux

Application

  • Desktop

For linux, can you create a flatpak version?

DOCPROF avatar Aug 26 '18 20:08 DOCPROF

that would be great!

horizonbrave avatar Sep 08 '18 03:09 horizonbrave

Need to wait for electron-builder to add support for it

laurent22 avatar Sep 08 '18 14:09 laurent22

it would take an extra step but this could work https://github.com/endlessm/electron-installer-flatpak

kurobeats avatar Nov 04 '18 10:11 kurobeats

Flatpak will be a great option for any Linux user to easily install Joplin.

trymeouteh avatar Apr 15 '19 00:04 trymeouteh

IMHO Flatpak support is a much-needed feature and has several benefits: -The Appimage option always had the problem of integration; Icons in gnome dock never worked and could not be pinned as favorite (at least this was the case with many Appimage Apps including Joplin before i moved to Arch and began to use the AUR package) -Flatpak seems to be more focused on user apps compared to the more server orientated Snap -Is supported by GNOME and most big Linux distros as the de facto future app distribution system -Will be AFAIk used for the renewed push to bring Linux to phones (Librem, Pinephone) -Bring the security advantages of sandboxing -Add the wide and distro agnostic reach of the Flathub App Store if that is wanted Just my 2 cents from a non dev FOSS fan..

Stele77 avatar Oct 19 '19 17:10 Stele77

Can you please add the support on flatpak, I am a arch linux user and it takes ages to install joplin into my computer from AUR, Linux Mint had previous version, It will be very nice to have joplin on flatpak.

teynav avatar Oct 22 '19 16:10 teynav

@teynav - I use Manjaro and the below command works for me as another solution. This will install the .appimage. So it should work just fine on Arch too.

wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash

Regarding the Flatpak support - This is dependent on electron-builder which is already shared above in the ticket.

~ Another user

unsungNovelty avatar Nov 15 '19 14:11 unsungNovelty

How about a snap package for Joplin I think they have a good support for electron based desktop apps https://snapcraft.io/docs/electron-apps AppImage is really painful, even with the provided shell script its always better to have an automated solution for updates

And how about an apt repository for debian users?

kornava avatar Jan 25 '20 22:01 kornava

I would recommend against Snaps. Their backend and main repository is proprietary.

poperigby avatar Jan 25 '20 22:01 poperigby

While I wait for my current PR to get reviewed again, I'm messing around with trying to build a flatpak version to solve this issue. So far, what I've found is the flatpak format is barely supported for Electron and is infuriating to setup with only a small handful of node packages available.

This one seems to be the most up to date and stable one available but using it following the page's instructions throws this error in my terminal:

electron-installer-flatpak --src dist/app-linux-x64/ --dest dist/installers/ --arch x64 Creating package (this may take a while) (node:4922) UnhandledPromiseRejectionWarning: Error: flatpak-builder failed with status code 1 at ChildProcess. (/usr/lib/node_modules/@malept/electron-installer-flatpak/node_modules/@malept/flatpak-bundler/index.js:68:16) at ChildProcess.emit (events.js:321:20) at maybeClose (internal/child_process.js:1026:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) (node:4922) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:4922) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Anyone else attempt this yet or have some insight into this?

bedwardly-down avatar Feb 11 '20 08:02 bedwardly-down

I don't have a flatpak created but I do have a debian build if anyone wants to try it out.

bedwardly-down avatar Feb 11 '20 09:02 bedwardly-down

Would that help in any way?

PowerBossNautilus avatar Apr 06 '20 21:04 PowerBossNautilus

I’d love to see more versions released to help make using Joplin on Linux better but AppImage just works for enough users that I wouldn’t put much credence into this topic ever getting really resolved.

I was recently made a member of the official Joplin team, so I’m trying to get a native implementation going to solve this issue all the way, but it’ll probably be a side project without being a part of the actual project.

bedwardly-down avatar Apr 06 '20 23:04 bedwardly-down

I actually just sucesfully made a flatpak (ironically using the latest released AppImage)..

I'll possibly drop this onto a github repo if anyone's interested, also I'm happy to submit+maintain an official one on flatpak.org (this would be my first one so its probably not fully standards compliant yet)

EDIT: I've put this into github - https://github.com/starkers/joplin-flatpak

starkers avatar May 12 '20 22:05 starkers

@laurent22 I've just read the guidelines on getting a flatpak packaged up for everyone on flathub. I do need to do some small modifications but otherwise I should be able to get this published pretty quickly but I would like your permission.

So two paths forward really:

  1. would you like that we can release and update flatpaks with your current process? in which case I'll explore your CI sollution and try to PR that, I'm not fully up to spec on the procedures but I am happy to learn and assist
  2. I'm happy maintain the official flatpak and build it from the latest AppImage releases. I will of course try to ensure you have ownership of the repo in such a case. (I'll read more and update here if you like)

starkers avatar May 13 '20 09:05 starkers

@starkers, feel free to go ahead with it, you have my permission. As for the way to release it, how would that work if it's part of CI? Does it mean there will be a flatpaks being built and added to the GitHub release files? or the CI will trigger a build somewhere else and file will appear on Flathub?

laurent22 avatar May 13 '20 12:05 laurent22

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

stale[bot] avatar Jun 27 '20 15:06 stale[bot]

I am still interested in a version of Joplin installable via Flatpak. I believe we are just waiting on work upstream in Electron.


Sincerely, Hutson Keith Betts https://hyper-expanse.net/hutson Encryption Key ID: 0x613EF24A9954F2FE

On Sat, Jun 27, 2020, at 10:33 AM, stale[bot] wrote:

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laurent22/joplin/issues/738#issuecomment-650575753, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTD7ZS3QZG6WCL7RMOO4Z3RYYGOFANCNFSM4FRTX2HA.

hutson avatar Jun 27 '20 20:06 hutson

Here's my own Flatpak manifest for Joplin, making use of the AppImage release.
As Joplin is open source I'm not sure if this would be approved for publishing via Flathub as it doesn't build from source, but it's an improvement over the other suggestion here as my manifest uses the extra-data step to download the AppImage release on installation time.

I'm not bothering with building Joplin from source as it's a bit of a problem with Flatpak. It generates an unusable sqlite3_node module, even when forcing the module to be rebuilt. And Flathub's guidelines require offline building without network and with local sources cache, but flatpak-builder-tools/node failing to process Joplin's dependencies recursively.

If anyone wishes to push this forward and publish via Flathub then you're most welcome to use my manifest.

tinywrkb avatar Jun 28 '20 14:06 tinywrkb

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

stale[bot] avatar Jul 28 '20 18:07 stale[bot]

This should be left open.

exponentactivity avatar Jul 29 '20 08:07 exponentactivity

+1 a flatpak would be great!

adamj-codethink avatar Aug 20 '20 20:08 adamj-codethink

@tinywrkb It would be approved, as long as you have @laurent22 blessing and setup external-data-checker for updates.

barthalion avatar Aug 25 '20 07:08 barthalion

@barthalion Thanks for the feedback. I'm not using Joplin at all, so it would be preferred if someone else that knows the app and can notice when something is broken would maintain it.
For me, Flatpak packaging was kind of novelty and for being able to test it in a sandbox environment.

Nonetheless, I updated the manifest and that should be a bit more in line with Flathub submission, and this fixes an issue with the StatusNotifierItem system tray and the settings folder.

@laurent22 The external editor function will not work as intended with the Flatpak app, that's unless you'll be able to make use of the Portal API, so this should be taken into before Flathub publishing. Would it be acceptable to ship Joplin with this feature broken? adding an influx of users opening bug reports and complaining about it?

tinywrkb avatar Aug 25 '20 13:08 tinywrkb

Yes! A flapak of Joplin would be great. As a noob linux user I'm badly in need of a good note app. AppImage don't work well with my distro. @starkers please go ahead if you can. Kudos!

ghost avatar Sep 14 '20 13:09 ghost

If Snap is an alternative for some (the Snap issue is closed now):

@MrCarroll crafted a wonderful package for Joplin (you can find the repo on GitHub):

$ snap install joplin-james-carroll

alexanderadam avatar Sep 15 '20 06:09 alexanderadam

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

stale[bot] avatar Oct 15 '20 14:10 stale[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Oct 23 '20 00:10 stale[bot]

It would be great if this could be reopened - I think a flatpak would still be welcome.

Thanks.

fourstepper avatar Jan 13 '21 13:01 fourstepper

It's still relevant to me, as I would appreciate managing Joplin via my desktop's existing built-in package manager, as opposed to my current practice of downloading AppImage builds when prompted by Joplin. However, that is my experience on the matter.

hutson avatar Jan 14 '21 01:01 hutson