Package Details: mattermost-desktop 4.6.2-1

Git Clone URL: (read-only, click to copy)
Package Base: mattermost-desktop
Description: Mattermost Desktop application for Linux
Upstream URL:
Keywords: chat mattermost messenger networking slack
Licenses: Apache
Submitter: nineinchnick
Maintainer: caleb (wget)
Last Packager: caleb
Votes: 56
Popularity: 0.016946
First Submitted: 2016-04-02 09:08
Last Updated: 2021-01-25 17:25

Dependencies (4)

Required by (0)

Sources (3)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

jonathon commented on 2021-03-18 17:27

It might be worth bumping this to the commit [MM-23067] Browser View (technically 4.7.0pre) as it introduces support for Electron 11 (i.e. it works fine with electron from the repo). I've tested locally and it works absolutely fine.

For example:

index 8bac9df..51c1dc7 100644
@@ -6,23 +6,25 @@

 pkgdesc='Mattermost Desktop application for Linux'
 arch=('x86_64' 'i686')
 makedepends=('git' 'jq' 'npm')
 #optdepends=('hunspell: spell checking')
-            '0f18f87764465f1fc5a9fdfb6ef2834af4623c13bc95fce58da6cb0d8d39a75e'
+            '2b42741faf1938d0eb0418b1e6ba9104fe5ed5c4368bdf62908c84089074164d'

 prepare() {
-    cd "desktop-$pkgver"
+    cd "desktop-$_commit"

     # Depending on the architecture, in order to accelerate the build process,
     # removes the compilation of ia32 or x64 build.
@@ -39,7 +41,7 @@ prepare() {
     mv electron-builder-new.json electron-builder.json

     # Prepend to system electron in order to avoid an unneeded download.
-    local electronDist="/usr/lib/electron7"
+    local electronDist="/usr/lib/electron"
     local electronVersion="$(<"$electronDist"/version)"
     jq '{"electronDist": $electronDist, "electronVersion": $electronVersion} + .' \
         --arg electronDist "$electronDist" \
@@ -69,7 +71,7 @@ prepare() {

 package() {
-    cd "desktop-$pkgver"
+    cd "desktop-$_commit"
     npm run package:linux --cache "$srcdir/npm-cache"

     install -d "$pkgdir/usr/lib"
diff --git i/ w/
index 32009a8..46ff187 100644
--- i/
+++ w/
@@ -1,2 +1,2 @@
-exec electron7 /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"
+exec electron /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"

jdsnape commented on 2021-03-15 10:03

I think electron7 has now been removed from the community repo, so this package now fails to install:

makepkg -si
==> Making package: mattermost-desktop 4.6.2-1 (Mon 15 Mar 2021 10:00:47 GMT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: electron7
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> electron7
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I guess this is the same issue as others have had below?

jonathon commented on 2021-03-09 01:59

Just for info, this will build against electron8 and electron9 which will remove the dep on the EOL electron7. With 8 it seems stable, with 9 it will occasionally crash on certain menu operations but otherwise mostly works. It does not work well with 6 (missing menus, ...).

Archange commented on 2021-01-12 13:32

@obi12341 No, that’s a pikaur issue if this AUR helper is unable to find electron7-bin as filling the dependency on electron7.

@caleb said, some people might still have electron7 from [community] and this would break it for them, and anyone could push an electron7 source package.

So the mattermost-desktop PKGBUILD is technically correct, the issue is AUR helper not able to find packages that provides another one.

obi12341 commented on 2021-01-12 10:53

@caleb you are doing it wrong imho. There is no package electron7 anymore in AUR or [community]. Still specifying a dependency which is not around is breaking the UX to install the package. If the user is using pikaur -S mattermost-desktop (pikaur is widley used, >500 stars on github) it fails and for a lot of people out there it is just pain in the ass to get to know why.

Log: $ pikaur -S mattermost-desktop Reading repository package databases... Reading local package database... Resolving AUR dependencies... :: error: Can't resolve dependencies for AUR package 'mattermost-desktop': :: error: Dependencies missing for mattermost-desktop :: warning: Following package cannot be found in AUR: electron7
:: Try recovering? [e] edit PKGBUILD [s] skip this package [A] abort


caleb commented on 2021-01-08 08:44

@LMBernardo Any AUR helper worth its salt will already handle this. The electron7-bin package provides electron7, which is the proper way of handling this and helpers that use the API are able to discover them. Meanwhile even though there is currently no source build package posted if someone were to push an electron7 package (or some other variant, such as a Git build or fork) this method of specifying dependencies would allow people to use that package as an alternative to provide Electron.

Another reason is because some people may have kept the electron7 package from [community] around or have base systems that are not updated. This arrangement would allow them to use what they have most flexibly.

LMBernardo commented on 2021-01-08 02:31

Is there any particular reason for using 'electron7' as a dependency instead of 'electron7-bin'? I know AUR helpers are technically unsupported but it would be nice to be able to install without needing to manually install electron7-bin separately.

caleb commented on 2021-01-07 13:07

@test0 Did you have electron7 installed at the time you built the package? This still works for me (still using electron7-bin for that dependency). I'll update this to a newer Electron as soon as upstream supports it, but at the moment this is the configuration that is expected to work (and does for me).

test0 commented on 2020-12-23 18:30

When opening mattermost-dekstop all I get is a white blank screen. I tried to also install electron7-bin but it didn't work. What can I do?

nordic-devops commented on 2020-12-17 11:08

@dzusan thank you! That fixed it. :)