element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Create a snap for ubuntu

Open turt2live opened this issue 7 years ago • 22 comments

https://github.com/snapcrafters may be of help

turt2live avatar May 29 '18 21:05 turt2live

Related to https://github.com/vector-im/riot-web/issues/3718 and https://github.com/vector-im/riot-web/issues/4766

uhoreg avatar May 29 '18 21:05 uhoreg

Hey hey! I understand riot is an electron app, right? We have a blog post which details how easy it is to get a snap built. I'd love to help with this.

popey avatar Aug 07 '18 14:08 popey

vector-im/element-web#5868 is related

kristbaum avatar Feb 12 '19 13:02 kristbaum

They closed the pull request March 31 citing not wanting to create another distribution. People need to make noise in issue in order for them to reconsider. Here's some noise

Joshndroid avatar Apr 26 '19 02:04 Joshndroid

Just adding a note here to say that @popey has gone ahead and created an unofficial snap

https://twitter.com/popey/status/1133884378143166464 https://snapcraft.io/riot-web

aaronraimist avatar May 30 '19 03:05 aaronraimist

I tried the snap from the snapstore on Ubuntu 20.04. It launches only on first install. After closing the app it doesn't open again. The signal-desktop snap had the same problem, but now that seems fixed.

cyberpunkedu avatar Apr 30 '20 20:04 cyberpunkedu

I brought up the question of the possibility of an official Snapcraft build of Element Desktop in the Matrix chatroom, before I knew of this issue. There were many useful discussion points made that can be followed from this message:

https://matrix.to/#/!YTvKGNlinIzlkMTVRl:matrix.org/$1EL-t25jkkFRY_nmF3tTioeC5YWV16YD68lrizebDfo

stephenjudge avatar Jul 17 '20 19:07 stephenjudge

I tried the snap from the snapstore on Ubuntu 20.04. It launches only on first install. After closing the app it doesn't open again. The signal-desktop snap had the same problem, but now that seems fixed.

I am using the snap build on Xubuntu 18.04.4 LTS and is working fine. Obviously I can't say about 20.04 but as it's also an LTS I can't imagine why it would stop working.

stephenjudge avatar Jul 17 '20 19:07 stephenjudge

@popey the instructions from https://snapcraft.io/blog/bringing-electron-applications-to-linux produce snap with Element that freezes on run with this error.

FATAL:platform_shared_memory_region_posix.cc(255)] This is frequently caused by incorrect permissions on
 /dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix. 

I filled the issue with electron-builder https://github.com/electron-userland/electron-builder/issues/5574 Not sure what else can I do.

abitrolly avatar Jan 23 '21 10:01 abitrolly

What do you think of taking an approach similar to the signal-desktop snap? They aren't actually building the electron app in the snap manifest, instead they're pulling down the latest .deb files and then repackaging that.

nduja avatar Jan 24 '21 02:01 nduja

@nduja the electon-builder is the officially recommended way for building snaps https://snapcraft.io/docs/electron-apps so I only followed it. I will take look, thanks.

abitrolly avatar Jan 24 '21 08:01 abitrolly

I've been using the, I guess unofficial Riot snap for a while, but it seems to be getting out-of-date. Noticeably it hasn't changed its name to Element. Though I think it is missing some video features as well.

@popey is there a PR for your snapcraft configuration that could be built on? (I didn't see one in the list) Could there be? :smile:

ted-gould avatar Feb 09 '21 15:02 ted-gould

@ted-gould yeah, sorry the riot-web snap got behind. It actually was built from source, not a repack of the deb like signal. Unfortunately I got somewhat frustrated and burned out by the changes which made riot-web frequently fail to build, then the name change was the final straw. I just gave up in annoyance. I haven't even looked at riot/element since the name change. If people are having trouble building using electron builder, I'd recommend bringing it up on the snapcraft forum. https://forum.snapcraft.io/

popey avatar Feb 10 '21 09:02 popey

@popey already reported here https://forum.snapcraft.io/t/electron-builder-produces-freezing-snaps/22328 with no resolution so far.

abitrolly avatar Feb 10 '21 10:02 abitrolly

There are now a few of these:

  • https://snapcraft.io/element-desktop by @kenvandine (source: kenvandine/element-desktop, stable: 1.10.14, edge: 1.11.1)
  • https://snapcraft.io/element-client by @ArnaudLier (1.10.12, hidden because it had issues)
  • https://snapcraft.io/riot-web by @popey (1.6.0, seems also hidden)

FWIW upstream element-desktop is on 1.11.3 now; 1.11.1 is 25 days old, 1.10.14 and 1.10.12 are both from this May, 1.6.0 is from May 2020.

So https://snapcraft.io/element-desktop seems to be the way to go. (Just tried, seems to work fine.)

Some guidance about these on https://element.io/get-started#linux-details would be nice - snap apps are far superior UX for the average user comapres to messing around with apt signing keys and whatnot. If using https://snapcraft.io/element-desktop is inadvisable for some reason, the official page should probably warn about that. Otherwise it should link to it as the primary means of installation, or at least mention it.

tgr avatar Aug 20 '22 23:08 tgr

1.11.1 of the element-desktop snap is now in stable and 1.11.3 is building to edge right now.

kenvandine avatar Aug 21 '22 00:08 kenvandine

Could the snapcraft folder be added to the official repo, and the snap be taken over by element staff? Or maybe be moved to the snapcrafters repo? Most users would probably prefer that a highly sensitive app like element would come from a more official source. Nothing against @kenvandine ;)

kristbaum avatar Aug 22 '22 11:08 kristbaum

@kristbaum unlikely on the front of it being maintained by the Element Web team, we don't have sufficient bandwidth or area knowledge to take this on at this time.

t3chguy avatar Aug 22 '22 11:08 t3chguy

I have updated the description of riot-web to indicate it's no longer maintained and that users should instead use element-desktop.

popey avatar Aug 22 '22 11:08 popey

Hi team! There's an unofficial snap pkg available in the snap store: https://github.com/kenvandine/element-desktop. Might we merge its snap implementation here? Maybe myself or @kenvandine could help with the support but we'll have the benefit that the app will be official.

santiagofn avatar Apr 20 '23 17:04 santiagofn

I'm happy to keep supporting it, but it would be great to see it published officially.

On Thu, Apr 20, 2023, 1:35 PM santiago fn @.***> wrote:

Hi team! There's an unofficial snap pkg available in the snap store: https://github.com/kenvandine/element-desktop. Might we merge its snap implementation here? Maybe myself or @kenvandine https://github.com/kenvandine could help with the support but we'll have the benefit that the app will be official.

— Reply to this email directly, view it on GitHub https://github.com/vector-im/element-desktop/issues/652#issuecomment-1516703958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANMBKYWR33O6FL75L2LYLXCFXW3ANCNFSM6AAAAAAXCVNKXU . You are receiving this because you were mentioned.Message ID: @.***>

kenvandine avatar Apr 20 '23 23:04 kenvandine

I don't think we should take in a package that we can't self maintain push come to shove, so unless someone from the web team with snap packaging experience is willing to step up and take the reigns this is better remaining as it is

t3chguy avatar Apr 21 '23 08:04 t3chguy