Package Details: threema-desktop 1.2.41-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: 15
Popularity: 0.22
First Submitted: 2021-10-27 10:38 (UTC)
Last Updated: 2024-04-22 07:34 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

solnce commented on 2022-08-04 10:03 (UTC)

The package does not build for me, on two different machines.

==> Making package: threema-desktop 1.2.18-2 (Thu 04 Aug 2022 12:03:17 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading threema-web-electron-v1.2.18.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2692k    0 2692k    0     0  6093k      0 --:--:-- --:--:-- --:--:-- 6093k
  -> Downloading threema-web-v2.4.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21.5M    0 21.5M    0     0  16.1M      0 --:--:--  0:00:01 --:--:-- 19.8M
  -> Found threema.desktop
  -> Found 0001-When-browser-detection-fails-don-t-return-undefined.patch
  -> Found 0002-Remove-browser-warning.patch
==> Validating source files with sha256sums...
    threema-web-electron-v1.2.18.tar.gz ... Passed
    threema-web-v2.4.2.tar.gz ... Passed
    threema.desktop ... Passed
    0001-When-browser-detection-fails-don-t-return-undefined.patch ... Passed
    0002-Remove-browser-warning.patch ... Passed
==> Extracting sources...
  -> Extracting threema-web-electron-v1.2.18.tar.gz with bsdtar
  -> Extracting threema-web-v2.4.2.tar.gz with bsdtar
==> Starting prepare()...
patching file src/services/browser.ts
patching file src/partials/welcome.ts
==> Removing existing $pkgdir/ directory...
==> Starting build()...

up to date, audited 581 packages in 1s

63 packages are looking for funding
  run `npm fund` for details

4 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
Patching new user agent detection
../../../tools/patches/patch-user-agent.patch:45: trailing whitespace.
            browser.macosDesktop = /darwinthreemadesktop/.test(uagent)
../../../tools/patches/patch-user-agent.patch:46: trailing whitespace.
            browser.win32Desktop = /win32threemadesktop/.test(uagent)
../../../tools/patches/patch-user-agent.patch:47: trailing whitespace.
            browser.linuxDesktop = /linuxthreemadesktop/.test(uagent)
error: patch failed: src/partials/welcome.ts:170
error: src/partials/welcome.ts: patch does not apply
error: patch failed: src/services/browser.ts:124
error: src/services/browser.ts: patch does not apply
==> ERROR: A failure occurred in build().
    Aborting...

dbrgn commented on 2022-07-08 11:34 (UTC)

@jongeduard: Don't consider this application to be new. It's a repackaging of Threema Web for the desktop, which is in maintenance mode. The main development efforts at Threema are going into Threema Desktop 2.0, which is a completely new codebase which won't have these deprecation warnings.

jongeduard commented on 2022-07-08 10:02 (UTC)

Thank you for fixing! It works indeed.

Note: I am not really an Electron and Node.js expert (I am a developer in other technologies), but it it always strikes me that there are so many warnings during the compile of this application, mostly deprecation warnings (so not immediately an issue, but I would not expect so many on such a new application like this).

dbrgn commented on 2022-07-08 08:38 (UTC)

Package fixed.

dbrgn commented on 2022-07-08 08:21 (UTC)

I assume the reason is an electron update that changed the way CSP rules are applied/enforced. I'll try to find a fix.

sun.shine commented on 2022-07-06 13:24 (UTC)

@jongeduard: I face the exact same situation as @tifrueh.

tifrueh commented on 2022-07-03 12:13 (UTC) (edited on 2022-07-03 12:14 (UTC) by tifrueh)

@jongeduard I've got the exact same problem. The 'threema-desktop-bin' package still works flawlessly, though ...

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