Package Details: discord-ptb 1.0.195-1

Git Clone URL: https://aur.archlinux.org/discord-ptb.git (read-only, click to copy)
Package Base: discord-ptb
Description: All-in-one voice and text chat for gamers - public test build
Upstream URL: https://discord.com
Licenses: custom
Submitter: timschumi
Maintainer: timschumi
Last Packager: timschumi
Votes: 22
Popularity: 0.76
First Submitted: 2019-09-05 08:41 (UTC)
Last Updated: 2026-06-11 21:15 (UTC)

Dependencies (8)

Required by (3)

Sources (3)

Latest Comments

1 2 3 Next › Last »

timschumi commented on 2026-04-25 15:06 (UTC)

@godic @Lulzagna It's been fixed, I already had the patches available from when I was updating discord-canary, but didn't get around to pushing them until now.

Lulzagna commented on 2026-04-25 14:32 (UTC) (edited on 2026-04-25 14:32 (UTC) by Lulzagna)

In addition to @godic suggestion, the symbolic link also needed updating.

Here's my full patch:

diff --git a/PKGBUILD b/PKGBUILD
index 30438c5..0531c8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,18 +33,15 @@ package() {
   install -d "$pkgdir"/opt/$pkgname
   cp -a $_pkgname/. "$pkgdir"/opt/$pkgname

-  chmod 755 "$pkgdir"/opt/$pkgname/$_pkgname
+  chmod 755 "$pkgdir"/opt/$pkgname/$pkgname

   rm "$pkgdir"/opt/$pkgname/postinst.sh

   install -d "$pkgdir"/usr/{bin,share/{pixmaps,applications}}
-  ln -s /opt/$pkgname/$_pkgname "$pkgdir"/usr/bin/$pkgname
+  ln -s /opt/$pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname
   ln -s /opt/$pkgname/discord.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
   ln -s /opt/$pkgname/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop

-  # setuid on chrome-sandbox
-  chmod u+s "$pkgdir"/opt/$pkgname/chrome-sandbox
-
   install -Dm644 LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html
   install -Dm644 OSS-LICENSES.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html
 }

godic commented on 2026-04-23 20:40 (UTC) (edited on 2026-04-23 20:42 (UTC) by godic)

starting with version 1.0.188, discord changed the structure of the files inside the .tar.gz available at https://dl-ptb.discordapp.net/apps/linux/1.0.188/discord-ptb-1.0.188.tar.gz to only include a wrapper discord-ptb script that downloads discord-ptb instead of the full data of discord-ptb directly.

This fails the build because there's no longer a binary named DiscordPTB inside the extracted dir.

The fix is to change:

  • chmod 755 "$pkgdir"/opt/$pkgname/$_pkgname line to chmod 755 "$pkgdir"/opt/$pkgname/$pkgname

  • and remove / comment out the line chmod u+s "$pkgdir"/opt/$pkgname/chrome-sandbox because it no longer exists.

binarynoise commented on 2024-04-17 13:24 (UTC)

for the StartupWMClass, Discord PTB still uses discord as window class, so the window won't be grouped with the pinned icon on the taskbar/window list

xprop | grep -i class
WM_CLASS(STRING) = "discord", "discord"

timschumi commented on 2022-09-15 21:50 (UTC)

0.0.20 looks like a bogus version bump (that package version was already released for the PTB channel back in 2020, only stable is currently at 0.0.20), especially since 0.0.33 appears to run fine still. Let's wait a bit if Discord manages to fix their release numbering, I don't really want to bump the package epoch just for this.

timschumi commented on 2022-02-18 12:56 (UTC)

@efindus So that's why the icon behaves weirdly. Thanks for the hint, will fix.

efindus commented on 2022-02-12 22:21 (UTC)

Could you please make the sed in prepare() modify StartupWMClass to discord-ptb so that application icons won't get mixed up in KDE Plasma (and possibly GNOME although I haven't checked)?

timschumi commented on 2021-09-17 15:25 (UTC)

Should be fixed now. I occasionally forget that I have to manually exclude those files from the validity checks, since they change on every download.

thes1lv3r commented on 2021-09-17 15:21 (UTC)

The LICENSE.html and OSS-LICENSES.html files have changed, making the validity checks fail

timschumi commented on 2020-11-25 00:58 (UTC)

Sorry for the delay, I'm not sure where my notifications went...

I applied the fix from the main Discord package, as well as updated the package to 0.0.23 while at it.