Package Details: threema-desktop 1.2.46-2

Git Clone URL: https://aur.archlinux.org/threema-desktop.git (read-only, click to copy)
Package Base: threema-desktop
Description: Threema Desktop (Threema Web in Electron).
Upstream URL: https://github.com/threema-ch/threema-web-electron
Licenses: AGPL
Submitter: dbrgn
Maintainer: dbrgn
Last Packager: dbrgn
Votes: 17
Popularity: 0.022599
First Submitted: 2021-10-27 10:38 (UTC)
Last Updated: 2024-11-22 00:17 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6

jongeduard commented on 2022-07-03 09:58 (UTC) (edited on 2022-07-03 10:01 (UTC) by jongeduard)

Hi, I am still trying to find out what's going wrong but suddenly I notice that things are not working anymore. I see "Threema.Web" logo and the background on the login page, but it's QR and password part is empty. And thus I decided to show up the Chromium engine's DevTools on the right (Ctrl+Shift+I). It shows me a long output with several errors and warnings:

GET file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/userconfig.overrides.js?v=2.4.1 net::ERR_FILE_NOT_FOUND
DevTools failed to load source map: Could not parse content for file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/preload.js.map: Unexpected end of JSON input
bootstrap.ts:3 Bundle loaded, bootstrapping application.
bootstrap.ts:5 Refused to create a worker from 'file:///service-worker.js' because it violates the following Content Security Policy directive: "worker-src 'none'".

(anonymous) @ bootstrap.ts:5
Promise.then (async)
2670 @ bootstrap.ts:2
je @ bootstrap:19
(anonymous) @ startup:4
(anonymous) @ startup:4
bootstrap.ts:10 Service worker registration failed, error: DOMException: Failed to register a ServiceWorker: The provided scriptURL ('file:///service-worker.js') violates the Content Security Policy.
(anonymous) @ bootstrap.ts:10
Promise.catch (async)
(anonymous) @ bootstrap.ts:9
Promise.then (async)
2670 @ bootstrap.ts:2
je @ bootstrap:19
(anonymous) @ startup:4
(anonymous) @ startup:4
logger.ts:80    [UncaughtException] Unhandled exception (ng): TypeError: Cannot read properties of undefined (reading 'version')
TypeError: Cannot read properties of undefined (reading 'version')
    at new Be (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/771.75289bf4d3a9c3a997bd.bundle.js:1:267913)
    at Object.instantiate (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:5223:14)
    at $controller (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:11829:28)
    at Object.<anonymous> (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/@uirouter/angularjs/release/angular-ui-router.min.js?v=2.4.1:11:107114)
    at file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:1391:18
    at invokeLinkFn (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:11376:9)
    at nodeLinkFn (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:10695:11)
    at compositeLinkFn (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:9942:13)
    at publicLinkFn (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:9807:30)
    at lazyCompilation (file:///usr/lib/threema-desktop/resources/app.asar/dependencies/threema-web/release/threema-web-2.4.1/node_modules/angular/angular.js?v=2.4.1:10221:25) 
Caused by:
<div id="main-content" ui-view="" class="ng-scope" data-ng-animate="1">
unveil @ logger.ts:80
forward @ logger.ts:19
(anonymous) @ app.ts:167
invokeLinkFn @ angular.js?v=2.4.1:11378
nodeLinkFn @ angular.js?v=2.4.1:10695
compositeLinkFn @ angular.js?v=2.4.1:9942
publicLinkFn @ angular.js?v=2.4.1:9807
lazyCompilation @ angular.js?v=2.4.1:10221
E @ angular-ui-router.min.js?v=2.4.1:11
configUpdated @ angular-ui-router.min.js?v=2.4.1:11
(anonymous) @ angular-ui-router.min.js?v=2.4.1:11
t.sync @ angular-ui-router.min.js?v=2.4.1:11
jr @ angular-ui-router.min.js?v=2.4.1:11
e.invokeHook @ angular-ui-router.min.js?v=2.4.1:11
(anonymous) @ angular-ui-router.min.js?v=2.4.1:11
e.runAllHooks @ angular-ui-router.min.js?v=2.4.1:11
(anonymous) @ angular-ui-router.min.js?v=2.4.1:11
processQueue @ angular.js?v=2.4.1:18075
(anonymous) @ angular.js?v=2.4.1:18123
$digest @ angular.js?v=2.4.1:19242
$apply @ angular.js?v=2.4.1:19630
done @ angular.js?v=2.4.1:13473
completeRequest @ angular.js?v=2.4.1:13730
requestLoaded @ angular.js?v=2.4.1:13635
load (async)
(anonymous) @ angular.js?v=2.4.1:13618
sendReq @ angular.js?v=2.4.1:13418
serverRequest @ angular.js?v=2.4.1:13159
processQueue @ angular.js?v=2.4.1:18075
(anonymous) @ angular.js?v=2.4.1:18123
$digest @ angular.js?v=2.4.1:19242
$apply @ angular.js?v=2.4.1:19630
bootstrapApply @ angular.js?v=2.4.1:1966
invoke @ angular.js?v=2.4.1:5208
doBootstrap @ angular.js?v=2.4.1:1964
bootstrap @ angular.js?v=2.4.1:1984
(anonymous) @ bootstrap.ts:13
Promise.then (async)
2670 @ bootstrap.ts:2
je @ bootstrap:19
(anonymous) @ startup:4
(anonymous) @ startup:4
VM81 sandbox_bundle:53 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM81 sandbox_bundle:53
logSecurityWarnings @ VM81 sandbox_bundle:53
(anonymous) @ VM81 sandbox_bundle:53
load (async)
securityWarnings @ VM81 sandbox_bundle:53
(anonymous) @ VM81 sandbox_bundle:37
./lib/renderer/common-init.ts @ VM81 sandbox_bundle:37
__webpack_require__ @ VM81 sandbox_bundle:1
(anonymous) @ VM81 sandbox_bundle:93
./lib/sandboxed_renderer/init.ts @ VM81 sandbox_bundle:93
__webpack_require__ @ VM81 sandbox_bundle:1
(anonymous) @ VM81 sandbox_bundle:1
___electron_webpack_init__ @ VM81 sandbox_bundle:1
(anonymous) @ VM81 sandbox_bundle:160

Does anyone else have this issue? I don't know if this is just broken on my system or on anyone elses too.

bbx0 commented on 2022-04-06 16:22 (UTC)

Thanks for the update! Please add git to the makedepends or the build may fail in a clean chroot.

Patching new user agent detection
./tools/patches/patch-threema-web.sh: line 6: git: command not found
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing chroot copy [/var/lib/aurbuild/x86_64/build-4639]...done
==> ERROR: Build failed

dbrgn commented on 2022-04-05 20:25 (UTC)

@nursoda: Is this fixed in the updated version (1.2.0)?

nursoda commented on 2022-04-03 15:14 (UTC) (edited on 2022-04-03 15:14 (UTC) by nursoda)

Tried to rebuild the package today, got this – any idea what's astray?

[webpack-cli] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at BulkUpdateDecorator.hashFactory (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/lib/util/createHash.js:155:18)
    at BulkUpdateDecorator.digest (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/lib/util/createHash.js:80:21)
    at cache/pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/lib/DefinePlugin.js:595:38
    at _next33 (eval at create (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:42:1)
    at _next11 (eval at create (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:97:1)
    at Hook.eval [as call] (eval at create (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:123:1)
    at Hook.CALL_DELEGATE [as _call] (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (pikaur/build/threema-desktop/src/threema-web-electron-release-1.1.0/app/dependencies/threema-web/node_modules/webpack/lib/Compiler.js:1053:26) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

dbrgn commented on 2021-11-04 17:00 (UTC)

@nobodyinperson ah, I overlooked that x64 when I changed the architecture to "any". What does the directory name look like on aarch64? Is it "Threema-linux-aarch64"?

nobodyinperson commented on 2021-11-04 14:08 (UTC)

If you don't hard-code the x64 in package() but swap that for an asterisk, this package builds and runs perfectly fine on an aarch64 Manjaro ARM PinePhone:

diff --git a/PKGBUILD b/PKGBUILD
index bc1a014..a9460cd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -55,7 +55,7 @@ package() {

   # Copy application
   mkdir -p "${pkgdir}/usr/lib/${pkgname}/resources/"
-  cp "${_app_root}/app/build/dist-electron/packaged/${_appname}-linux-x64/resources/app.asar" \
+  cp "${_app_root}"/app/build/dist-electron/packaged/"${_appname}"-linux-*/resources/app.asar \
      "${pkgdir}/usr/lib/${pkgname}/resources/"

   # Create launcher

dbrgn commented on 2021-11-03 20:22 (UTC)

@buzo: Should be fixed, I aliased the source filenames and changed the architecture to "any" (something I forgot to change when I based the PKGBUILD on the -bin variant of this package).

buzo commented on 2021-11-02 18:17 (UTC) (edited on 2021-11-02 18:17 (UTC) by buzo)

Thanks for packaging this for Arch!

Please have a look at the Namcap warnings:

Checking PKGBUILD
PKGBUILD (threema-desktop) W: Non-unique source name (v2.3.17.tar.gz). Use a unique filename.
Checking threema-desktop-1.0.3-3-x86_64.pkg.tar.zst
threema-desktop W: No ELF files and not an "any" package