Package Details: session-desktop 1.9.1-1

Git Clone URL: (read-only, click to copy)
Package Base: session-desktop
Description: Private messaging from your desktop
Upstream URL:
Keywords: loki messenger session signal
Licenses: GPL-3.0
Conflicts: session-desktop-appimage, session-desktop-bin, session-desktop-git
Provides: session-messenger-desktop
Submitter: xXR01I1Xx
Maintainer: sperg512
Last Packager: sperg512
Votes: 10
Popularity: 0.070317
First Submitted: 2020-03-23 07:39 (UTC)
Last Updated: 2022-08-12 07:00 (UTC)

Latest Comments

ardency commented on 2022-05-21 13:55 (UTC)

Getting this error during build of the package:

==> Starting build()...
yarn install v1.22.19
[1/6] Validating package.json...
error session-desktop@1.8.6: The engine "node" is incompatible with this module. Expected version "16.13.0". Got "14.16.0"
error Found incompatible module.

Seems like the PKGBUILD manually selects node v14.16.0 through nvm. This ought to be bumped to v16.

Doing so results in a build error for better-sqlite3, that I'm not sure how to fix though:

npm ERR! > better-sqlite3@7.5.0 install
npm ERR! > npm run build-release
npm ERR! 
npm ERR! > better-sqlite3@7.5.0 build-release
npm ERR! > node-gyp rebuild --release
npm ERR! Error: TAR_BAD_ARCHIVE: Unrecognized archive format
npm ERR!     at Unpack.warn (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/warn-mixin.js:19:40)
npm ERR!     at Unpack.warn (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/unpack.js:220:18)
npm ERR!     at Unpack.<anonymous> (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:81:14)
npm ERR!     at Unpack.emit (node:events:402:35)
npm ERR!     at Unpack.[emit] (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:285:12)
npm ERR!     at Unpack.[maybeEnd] (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:401:17)
npm ERR!     at Unpack.[consumeChunk] (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:432:21)
npm ERR!     at Unpack.write (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:364:25)
npm ERR!     at Unpack.end (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/tar/lib/parse.js:477:14)
npm ERR!     at Yallist.<anonymous> (/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/node_modules/minipass/index.js:409:18) {
npm ERR!   recoverable: false,
npm ERR!   file: '/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/deps/sqlcipher.tar.gz',
npm ERR!   cwd: '/home/erin/.npm/_cacache/tmp/git-clonel3q3cq/build/Release/obj/gen/sqlite3',
npm ERR!   code: 'TAR_BAD_ARCHIVE',
npm ERR!   tarCode: 'TAR_BAD_ARCHIVE'
npm ERR! }
npm ERR! make: *** [deps/ b857c92884e9598d609f6be182a2595df7a8e00f.intermediate] Error 1

sperg512 commented on 2022-05-02 18:10 (UTC)

Alright, after a month of SSH being really sussy, I've got this working again. Please let me know if there is need of a node.js version change again.

sperg512 commented on 2022-04-10 13:24 (UTC)

Thank you, I'll apply this when I'm able, and also get auto-updating working while I'm at it

antony.ho commented on 2022-04-10 02:59 (UTC)

Here is a patch to fix all the build problems.

From fe8ded9b7906bb2781ac5277486e4cb2b21e23ef Mon Sep 17 00:00:00 2001
From: Antony Ho <>
Date: Sun, 10 Apr 2022 04:35:56 +0200
Subject: [PATCH] Fix build failures

- Use correct nodejs version for building the package
- Update package build dependency
- Apply git lfs as it is needed according to official docs
- Fix the way checking out corresponding version from tag
- Use the new merged branch of better-sqlite3 from SignalApp to solve NodeJS
  dependency issue during build time
- Fix icon file paths on copying from src
- Remove 24x24 icon copying as the file doesn't exist
- Update build commands to update and install dependency with proper workflow
  on building package for NodeJS
- Bump version to 1.7.9
 PKGBUILD           | 38 +++++++++++++++++++++-----------------
 patch.diff.example | 13 -------------
 2 files changed, 21 insertions(+), 30 deletions(-)
 delete mode 100644 patch.diff.example

diff --git a/PKGBUILD b/PKGBUILD
index 0e055aa..6cd0218 100644
@@ -1,13 +1,13 @@
 # Maintainer: xXR01I1Xx <>
 pkgdesc="Private messaging from your desktop"
 depends=(libxtst nss alsa-lib libxss libnotify xdg-utils)
-makedepends=('git' 'nvm' 'yarn')
+makedepends=('git' 'git-lfs' 'nvm' 'yarn' 'nodejs>=14.16.0')
 optdepends=('libappindicator-gtk3: for tray support')
 conflicts=(session-desktop-bin session-desktop-git session-desktop-appimage)
@@ -20,17 +20,23 @@ sha256sums=('SKIP'

 prepare() {
   cd $srcdir/session-desktop
-  git checkout $(git describe --tags)
-  source /usr/share/nvm/ && nvm install 10.19.0
+  git checkout v$pkgver
+  source /usr/share/nvm/ && nvm install 14.16.0
+  git lfs install
+  nvm install
+  nvm use
+  yarn remove better-sqlite3
+  yarn add

 build() {
   cd "$srcdir/session-desktop"
-  source /usr/share/nvm/ && nvm use --delete-prefix v10.13.0 --silent
+  source /usr/share/nvm/ && nvm use --delete-prefix v14.16.0 --silent
   export SIGNAL_ENV=production
-  yarn install --frozen-lockfile
+  yarn install
   yarn generate
-  yarn lint-full
+  npm install
+  yarn grunt
   $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --publish=never --config.directories.output=release --linux tar.xz

@@ -38,7 +44,6 @@ package() {
   mkdir -p $pkgdir/usr/share/applications
   mkdir -p $pkgdir/opt/
   mkdir -p $pkgdir/usr/share/icons/hicolor/16x16/apps/
-  mkdir -p $pkgdir/usr/share/icons/hicolor/24x24/apps/
   mkdir -p $pkgdir/usr/share/icons/hicolor/32x32/apps/
   mkdir -p $pkgdir/usr/share/icons/hicolor/48x48/apps/
   mkdir -p $pkgdir/usr/share/icons/hicolor/64x64/apps/
@@ -47,15 +52,14 @@ package() {
   mkdir -p $pkgdir/usr/share/icons/hicolor/512x512/apps/
   mkdir -p $pkgdir/usr/share/icons/hicolor/1024x1024/apps/

-  cp $srcdir/session-desktop/build/icons/png/16x16.png $pkgdir/usr/share/icons/hicolor/16x16/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/24x24.png $pkgdir/usr/share/icons/hicolor/24x24/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/64x64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/128x128.png $pkgdir/usr/share/icons/hicolor/128x128/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/256x256.png $pkgdir/usr/share/icons/hicolor/256x256/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/512x512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/session-messenger-desktop.png
-  cp $srcdir/session-desktop/build/icons/png/1024x1024.png $pkgdir/usr/share/icons/hicolor/1024x1024/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_16x16.png $pkgdir/usr/share/icons/hicolor/16x16/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_64x64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_128x128.png $pkgdir/usr/share/icons/hicolor/128x128/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_256x256.png $pkgdir/usr/share/icons/hicolor/256x256/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_512x512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/session-messenger-desktop.png
+  cp $srcdir/session-desktop/build/icons/icon_1024x1024.png $pkgdir/usr/share/icons/hicolor/1024x1024/apps/session-messenger-desktop.png

   tar xf $srcdir/session-desktop/release/session-desktop-linux-x64-$pkgver.tar.xz -C $pkgdir/opt/
   mv $pkgdir/opt/session-desktop-linux-x64-$pkgver $pkgdir/opt/Session
diff --git a/patch.diff.example b/patch.diff.example
deleted file mode 100644
index e58f169..0000000
--- a/patch.diff.example
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/package.json b/package.json
-index d05625c7..128028f8 100644
---- a/package.json
-+++ b/package.json
-@@ -2,7 +2,7 @@
-   "name": "session-messenger-desktop",
-   "productName": "Session",
-   "description": "Private messaging from your desktop",
--  "version": "1.0.5",
-+  "version": "ver_placeholder",
-   "license": "GPL-3.0",
-   "author": {
-     "name": "Loki Project",

antony.ho commented on 2022-04-08 20:38 (UTC) (edited on 2022-04-08 20:52 (UTC) by antony.ho)

Getting the node version error as previous discussions. Even with manual modification on the PKGBUILD and switching to v10.19.0.

error session-desktop@1.7.6: The engine "node" is incompatible with this module. Expected version "^14.16.0". Got "10.19.0"
error Found incompatible module.

I edited the PKGBUILD and bumped node version to 14.16.0 as mentioned in the error log. I got the build process passed through the node version error.

But now there is error on the yarn.lock.

[3/6] Fetching packages...
error Couldn't find match for "ad0db5dd09c0ea4007b1c46bd4f7273827803347" in "refs/heads/better-sqlcipher,refs/heads/feature/log-corruption,refs/heads/no-openssl,refs/heads/tmp" for "".

How could the official Linux CI build pipeline pass?

All the reported errors above could be found at issue ticket:

sperg512 commented on 2022-03-17 19:33 (UTC)

There are some issues with the auto updating script that I couldn't figure out. I'll be implementing an alternative solution later

ardency commented on 2022-01-29 01:11 (UTC)

This package doesn't build, and it would appear that this issues has been ongoing for half a year? Why do you keep bumping the version without fixing the package? :/

HEAD is now at 38202ba6f Merge pull request #2141 from Bilb/cleanup-attachment
Downloading and installing node v10.19.0...
##################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v10.19.0 (npm v6.13.4)
==> Starting build()...
==> ERROR: A failure occurred in build().

odd-1 commented on 2021-09-18 10:18 (UTC)

Might be basic knowledge for Linux users, but how do I remove this package from my system??? I've not been able to update this package in the last 3(!) months, because of this "node" stuff, but I'm also not able to remove it because of the same error...

moonaru commented on 2021-08-01 08:08 (UTC)

It doesn't compile with Node 14.16.0 version either, my friend. I think the problem is from the source code.

Neko-san commented on 2021-07-30 00:24 (UTC) (edited on 2021-07-30 00:24 (UTC) by Neko-san)

@sperg512 I also manually edited it to be 10.19.0 and it still failed :/

'said it expected version 14.[something] and found 10.x.x instead

sperg512 commented on 2021-07-29 23:59 (UTC)

That means a command silently failed. In this case, it was nvm use --delete-prefix v10.13.0 --silent. I think it should be 10.19.0, will try to fix later

Neko-san commented on 2021-07-29 23:56 (UTC)

I'm not understanding what's going wrong in the build process here?

HEAD is now at 8970daf29 Merge pull request #1812 from Bilb/fix-replying-focus-input
v10.19.0 is already installed.
Now using node v10.19.0 (npm v6.13.4)
==> Sources are ready.
session-desktop-1.6.9-1: parsing pkg list...
==> Making package: session-desktop 1.6.9-1 (Thu 29 Jul 2021 06:48:36 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> ERROR: A failure occurred in build().

odd-1 commented on 2021-06-15 11:47 (UTC)

Hope your exams went well!

Unfortunatelly, at the step packaging platform=linux arch=x64 electron=8.2.0 appOutDir=release/linux-unpacked targets [ 'tar.xz' ]

this error: ⨯ Cannot read property 'options' of undefined stackTrace= TypeError: Cannot read property 'options' of undefined at module.exports (/var/tmp/pamac-build-user/session-desktop/src/session-desktop/build/afterPackHook.js:19:38) at Packager.afterPack (/var/tmp/pamac-build-user/session-desktop/src/session-desktop/node_modules/app-builder-lib/src/packager.ts:541:29)

Can/should I do something and if yes, what?

sperg512 commented on 2021-05-25 13:02 (UTC)

sorry I've been busy with exams, I'll push out a new PKGBUILD in a few hours once I'm done

alexnortung commented on 2021-05-24 17:48 (UTC)

Installing does not work at the moment. I get an error:

error session-desktop@1.6.3: The engine "node" is incompatible with this module. Expected version "^10.19.0". Got "10.13.0"
error Found incompatible module.

It seems like the PKGBUILD is installing the 10.13.0 version of node. But for some reason it expects 10.19.0.

trizen commented on 2021-05-23 19:39 (UTC)

I got this error:

[1/6] Validating package.json...
error session-desktop@1.6.3: The engine "node" is incompatible with this module. Expected version "^10.19.0". Got "10.13.0"
error Found incompatible module.

By changing 10.13.0 to 10.19.0 in PKGBUILD (lines 24 and 29), the issue is fixed.

power_frontier commented on 2021-04-06 01:12 (UTC)

I get an error:

electron-builder version=22.3.6 os=5.4.105-1-MANJARO • loaded configuration file=package.json ("build" field) • rebuilding native dependencies dependencies=@journeyapps/sqlcipher@4.0.0, node-sass@4.9.3 platform=linux arch=x64 • packaging platform=linux arch=x64 electron=8.2.0 appOutDir=release/linux-unpacked • building target=tar.xz arch=x64 file=release/session-desktop-linux-x64-1.5.0.tar.xz ==> Entrando en entorno fakeroot... ==> Iniciando package()... tar: /var/tmp/pamac-build-frontier/session-desktop/src/session-desktop/release/session-desktop-linux-x64-1.5.2.tar.xz: No se puede efectuar open: No existe el fichero o el directorio tar: Error is not recoverable: exiting now ==> ERROR: Se produjo un fallo en package(). Cancelando...

Any clue?

sperg512 commented on 2021-03-19 07:42 (UTC)

@AverytheFurry the package itself doesnt install config files in user home directories, that's just done on first launch

AverytheFurry commented on 2021-03-19 06:00 (UTC) (edited on 2021-03-19 06:01 (UTC) by AverytheFurry)

Removing ~/.config/Session & then reinstalling fixed it!

AverytheFurry commented on 2021-03-19 05:54 (UTC)

Thanks for updating the package! It seems there's some issues though with old user data converting to the new version. paru -Rns does not remove the user data for some reason, maybe this is something that could be fixed in the package configuration? I'm not very knowledgable about packages. Thank you very much for maintaining!

AverytheFurry commented on 2021-03-18 04:10 (UTC)

Much appreciated! Hopefully it works!

sperg512 commented on 2021-03-18 02:10 (UTC)

@AverytheFurry yes, tried it a few days ago but there was some other error with building, then i had to sleep and kinda forgot about it. Later I'll try and fix it again.

AverytheFurry commented on 2021-03-18 01:11 (UTC)

Have you tried this (response to what you posted on github)

sperg512 commented on 2021-02-03 20:56 (UTC) (edited on 2021-02-03 20:57 (UTC) by sperg512)

there's a bug with building currently so once that gets fixed ill push (I first got this bug on 1.4.4 and it's still happening on 1.4.8)

chovy commented on 2021-01-19 08:11 (UTC)

1.4.5 is latest version now.

linuxninja commented on 2020-05-25 00:53 (UTC)

Looks like the build requirements should include both python and python2. I've updated the .patch and emailed it.

This now builds on a cleanly installed Arch Linux build machine.

linuxninja commented on 2020-05-24 00:47 (UTC) (edited on 2020-05-24 00:53 (UTC) by linuxninja)

I've emailed you a .patch for updating to 1.0.8 and a good bit of cleanup and re-work.

xXR01I1Xx commented on 2020-03-25 07:40 (UTC)

@chilledfrogs I've updated the PKGBUILD, maybe it'll work now.

chilledfrogs commented on 2020-03-24 22:36 (UTC)

@xXR01I1Xx Didn't change anything...

xXR01I1Xx commented on 2020-03-24 18:53 (UTC)

@AkariMarisa try to cleanbuild the package. If this doesn't help reinstall yarn and nvm.

AkariMarisa commented on 2020-03-24 18:40 (UTC)

When I update package, yarn reported a error, that failed the build. Here is the error:

==> Starting build()...
Now using node v10.13.0 (npm v6.4.1)
yarn install v1.22.4
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
error An unexpected error occurred: "Unexpected end of data".
info If you think this is a bug, please open a bug report with the information provided in "/home/akari/.cache/pikaur/build/session-desktop/src/session-desktop/yarn-error.log".
info Visit for documentation about this command.
==> ERROR: A failure occurred in build().

And here is the yarn error log:

  /home/akari/.nvm/versions/node/v10.13.0/bin/node /usr/bin/yarn install --frozen-lockfile


Yarn version: 

Node version: 

  linux x64

  Error: Unexpected end of data
      at Extract.module.exports.Extract._final (/usr/lib/node_modules/yarn/lib/cli.js:150889:42)
      at callFinal (/usr/lib/node_modules/yarn/lib/cli.js:74039:10)
      at process._tickCallback (internal/process/next_tick.js:63:19)

xXR01I1Xx commented on 2020-03-24 15:48 (UTC) (edited on 2020-03-24 15:50 (UTC) by xXR01I1Xx)

@chilledfrogs try to write this in your .bashrc: export NVM_DIR="/home/<username>/.nvm" If your home directory is a symlink to another drive, use the direct path to this drive instead.

chilledfrogs commented on 2020-03-24 14:55 (UTC)

I hope this isn't something specific to my setup, but when trying to upgrade, whether I cleanBuild or not, I get the following error:

==> Starting build()...
nvm is not compatible with the npm config "prefix" option: currently set to "/usr"
Run `npm config delete prefix` or `nvm use --delete-prefix v10.13.0 --silent` to unset it.
nvm is not compatible with the npm config "prefix" option: currently set to "/usr"
Run `npm config delete prefix` or `nvm use --delete-prefix v10.13.0` to unset it.
==> ERROR: A failure occurred in build().
Error making: session-desktop

Any ideas?