Package Details: signal-desktop-beta 7.52.0beta1-1

Git Clone URL: https://aur.archlinux.org/signal-desktop-beta.git (read-only, click to copy)
Package Base: signal-desktop-beta
Description: Signal Private Messenger for Linux - Beta version.
Upstream URL: https://signal.org
Keywords: secure-messenger signal signal-desktop
Licenses: GPL3
Conflicts: signal-desktop-beta-bin
Submitter: Edu4rdSHL
Maintainer: Edu4rdSHL
Last Packager: Edu4rdSHL
Votes: 16
Popularity: 0.44
First Submitted: 2020-08-17 19:09 (UTC)
Last Updated: 2025-04-19 00:51 (UTC)

Dependencies (33)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 15 Next › Last »

Edu4rdSHL commented on 2024-06-06 20:04 (UTC)

@mkurz StartupWMClass works perfectly on Wayland, and that's the reason it was added some time ago in https://aur.archlinux.org/cgit/aur.git/tree/signal-desktop-beta.desktop?h=signal-desktop-beta#n9

If someone wants to run it on wayland, then it can use the required flags, if your WM/DE is not recognizing StartupWMClass it's a problem with your DE, I'm not going to change the name of the desktop file for no reasons.

mkurz commented on 2024-06-06 14:59 (UTC)

(Sidenotes to my previous comment because I exceed the comment character limit ;)

Sidenote 1: Instead of renaming the desktop file I also tried to change StartupWMClass within the desktop file to signal-desktop-beta instead, but that did not work because it seems Wayland does not read this value and gets ignored and it's only relevant if you use X11.

Sidenote 2: Instead of copy/pasting the desktop file to ~/.local/share/applications/ to add the flag --ozone-platform-hint=... to Exec I just found out that there is better approach available since Electron 28: You can set the environment variable:

ELECTRON_OZONE_PLATFORM_HINT=wayland

just like the flag! (allowed values: auto|wayland|x11) I put that env var into /etc/environment so I don't have to copy/modify desktop files anymore (btw, restart required if changing /etc/environment) Here are links:

BTW, support for the --ozone-platform-hint flag itself was added in Electron 21 already:

Sidenote 3: The reason why I know all that is because I IntelliJ is currently working on Wayland support and they did run into the same problems:

mkurz commented on 2024-06-06 14:58 (UTC)

TLDR: Please rename the file signal-desktop-beta.desktop to signalbeta.desktop for better wayland support.

diff --git a/.SRCINFO b/.SRCINFO
index 6ee559a..24572ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -28,7 +28,7 @@ pkgbase = signal-desktop-beta
        optdepends = xdg-desktop-portal: Screensharing with Wayland
        conflicts = signal-desktop-beta-bin
        source = signal-desktop-beta-7.12.0beta3.tar.gz::https://github.com/signalapp/Signal-Desktop/archive/v7.12.0-beta.3.tar.gz
-       source = signal-desktop-beta.desktop
+       source = signalbeta.desktop
        sha512sums = 0b0df880c641b1bee43f0fa0adfbfefcdfbb3f785eeef456a9341fae7f35b5acef45ec017a84418dc69f4f84674e7dc722f72cafeb287cc1555d163f41e82a>
        sha512sums = 5ae001faedff440776f4a62235c294454a951f4cc412665a21cd958bdf4a0223c89f741f2786d93727c7acf49a8a98d75156c6e14ba1f01da261fba373ef67>
        makedepends_aarch64 = fpm
diff --git a/PKGBUILD b/PKGBUILD
index 8a0aa3b..c924b38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,7 @@ optdepends=('xdg-desktop-portal: Screensharing with Wayland')
 makedepends_aarch64=('fpm')
 source=(
   "${pkgname}-${pkgver}.tar.gz::https://github.com/signalapp/${_pkgname}/archive/v${pkgver//beta*}-beta.${pkgver##*beta}.tar.gz"
-  "${pkgname}.desktop"
+  "signalbeta.desktop"
   )
 sha512sums=('0b0df880c641b1bee43f0fa0adfbfefcdfbb3f785eeef456a9341fae7f35b5acef45ec017a84418dc69f4f84674e7dc722f72cafeb287cc1555d163f41e82a06'
             '5ae001faedff440776f4a62235c294454a951f4cc412665a21cd958bdf4a0223c89f741f2786d93727c7acf49a8a98d75156c6e14ba1f01da261fba373ef675a')
@@ -73,7 +73,7 @@ package() {

   chmod u+s "${pkgdir}/usr/lib/${pkgname}/chrome-sandbox"

-  install -Dm 644 "../${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+  install -Dm 644 "../signalbeta.desktop" -t "${pkgdir}/usr/share/applications"
   for i in 16 24 32 48 64 128 256 512 1024; do
     install -Dm 644 "build/icons/png/${i}x${i}.png" \
       "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"

Full story: I am running Wayland. Running the xlsclients command I found out that signal-desktop-beta is using XWayland and not running native in wayland :( Because signal-desktop-beta is an electron app, I want to run it natively in wayland. So what I did is copied the desktop so I can modify it:

cp /usr/share/applications/signal-desktop-beta.desktop ~/.local/share/applications/signal-desktop-beta.desktop

I added --ozone-platform-hint=auto to the command:

...
Exec=signal-desktop-beta --ozone-platform-hint=auto -- %u
...

Great! Now signal runs natively in Wayland and not using XWayland anymore. However, there is one issue: The app icon is not set correctly in the top left (the tray icon however is set correctly). Why is that? Wayland uses the concept of an app_id (which is kind of the same like WM_CLASS in X). That app_id has to match the .desktop file entry. Now, to find out what the app_id of signal-desktop-beta you can run (if you are running wayland):

WAYLAND_DEBUG=1 signal-desktop-beta --ozone-platform-hint=wayland

You will then see:

...
[2107606.322]  -> xdg_toplevel@44.set_app_id("signalbeta")
...

Instead of explaning too much myself I will just post some useful links:

And now look at this, the Signal-Desktop repo itself even names the desktop file signalbeta.desktop for it's beta setup:

And even one more proof: If you are running KDE/kwin (on wayland) and start signal with the wayland flag (signal-desktop-beta --ozone-platform-hint=wayland) you can run following and click on the signal window to display more insights:

$ qdbus org.kde.KWin /KWin queryWindowInfo
...
desktopFile: signalbeta
...

As you can see even here it says the desktop file expected would be signalbeta[.desktop] (this hint was taken from https://askubuntu.com/questions/367396/what-does-the-startupwmclass-field-of-a-desktop-file-represent/1461720#1461720).

Just-Punk commented on 2024-06-04 20:53 (UTC)

@mkurz thank you. It's been finally built & installed.

mkurz commented on 2024-06-04 11:44 (UTC)

OK, found the problem: https://github.com/signalapp/Signal-Desktop/pull/6898

Just wait for the next beta ;)

mkurz commented on 2024-06-04 11:39 (UTC) (edited on 2024-06-04 11:39 (UTC) by mkurz)

Fails for me too, using latest node:

$ node --version
v22.2.0

Just-Punk commented on 2024-06-04 07:30 (UTC)

@Edu4rdSHL, thank you for your suggestion.

local/nodejs 22.2.0-1
Evented I/O for V8 javascript

I'll try to find a solution. If I am successful with that, be sure that I'll post my steps.

Edu4rdSHL commented on 2024-06-03 01:33 (UTC)

@Just-Punk, it builds fine here. My only guess is that you're using some unsupported node version. Do you have installed the nodejs package or something else like any of the -lts versions of node?

If the latter is true, please consider using the nodejs package.

Just-Punk commented on 2024-05-31 17:28 (UTC) (edited on 2024-05-31 19:07 (UTC) by Just-Punk)

@Edu4rdSHL, the same.

$ makepkg
==> Making package: signal-desktop-beta 7.12.0beta1-1 (Fri 31 May 2024 08:17:46 PM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading signal-desktop-beta-7.12.0beta1.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 39.9M    0 39.9M    0     0  2510k      0 --:--:--  0:00:16 --:--:-- 2978k
  -> Found signal-desktop-beta.desktop
==> Validating source files with sha512sums...
    signal-desktop-beta-7.12.0beta1.tar.gz ... Passed
    signal-desktop-beta.desktop ... Passed
==> Extracting sources...
  -> Extracting signal-desktop-beta-7.12.0beta1.tar.gz with bsdtar
==> Starting prepare()...
Updated Git hooks.
Git LFS initialized.
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > focus-trap-react@10.1.1" has unmet peer dependency "prop-types@^15.8.1".
[4/4] Building fresh packages...
⠁ 
⠁ 
error /home/just-punk/Desktop/AUR/signal-desktop-beta/src/Signal-Desktop-7.12.0-beta.1/sticker-creator/node_modules/esbuild: Command failed.
Exit code: 126
Command: node install.js
Arguments: 
Directory: /home/just-punk/Desktop/AUR/signal-desktop-beta/src/Signal-Desktop-7.12.0-beta.1/sticker-creator/node_modules/esbuild
Output:

==> ERROR: A failure occurred in prepare().
    Aborting...

Can't get how other guys install it successfully.