Package Details: 64gram-desktop 1:1.2.3-3

Git Clone URL: https://aur.archlinux.org/64gram-desktop.git (read-only, click to copy)
Package Base: 64gram-desktop
Description: Unofficial desktop version of Telegram messaging app
Upstream URL: https://github.com/TDesktop-x64/tdesktop
Licenses: GPL3
Submitter: KspLite
Maintainer: alesar1
Last Packager: alesar1
Votes: 12
Popularity: 0.60
First Submitted: 2021-04-05 11:02 (UTC)
Last Updated: 2026-05-25 11:28 (UTC)

Required by (0)

Sources (5)

Latest Comments

1 2 3 4 Next › Last »

sots commented on 2026-06-12 07:17 (UTC)

The media player of the 64gram does not work with system media controller.

(64gram-desktop:2086203): GLib-GIO-CRITICAL **: 14:40:12.370: g_bus_own_name_on_connection: assertion 'g_dbus_is_name (name) && !g_dbus_is_unique_name (name)' failed

Gemini says that DBus does not allow name start with number like org.mpris.MediaPlayer2.64Gram and it creates this patch. It works for me now.

    diff --git a/PKGBUILD b/PKGBUILD
    index 0323a8e..ee7ea1d 100644
    --- a/PKGBUILD
    +++ b/PKGBUILD
    @@ -125,6 +125,10 @@ prepare() {
         patch -p1 --binary < ../fix-lzma-link.patch
         patch -Np1 -d Telegram/lib_base -i "$srcdir"/tdesktop-fix-minizip-includes.patch

    +    # Fix D-Bus names starting with a digit for MPRIS compatibility
    +    sed -i 's/QApplication::setApplicationName(u"64Gram"_q);/QApplication::setApplicationName(u"desktop_64gram"_q);/g' Telegram/SourceFiles/core/launcher.cpp
    +    sed -i 's/_controls->setApplicationName(AppName.utf16());/_controls->setApplicationName(u"desktop-64gram"_q);/g' Telegram/SourceFiles/media/system_media_controls_manager.cpp
    +    sed -i "s|return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + '/';|return QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + u\"/64Gram/\"_q;|g"
  Telegram/SourceFiles/platform/linux/specific_linux.cpp
     }

dreieck commented on 2025-06-14 07:50 (UTC)

Suggestion: In the PKGBUILD, change the dependency on protobuf to libprotobuf-lite.so (and add protobuf to makedepends then), so a versioned dependency will be generated at build time automatically and out of date errors due to updated libraries are maybe easier to spot (automatically?):

64gram-desktop: error while loading shared libraries: libprotobuf-lite.so.31.0.0: cannot open shared object file: No such file or directory

Regards!

xiaoxigua-1 commented on 2025-04-12 18:13 (UTC) (edited on 2025-04-12 18:16 (UTC) by xiaoxigua-1)

Fix build with Qt 6.9 using qt-6.9.patch from AUR

From f7346a6d8c02d8c1cfe96371f3b8b289f8e77fcc Mon Sep 17 00:00:00 2001
From: xiaoxigua-1 <xigua@xigua.tw>
Date: Sun, 13 Apr 2025 02:10:47 +0800
Subject: [PATCH] Fix build with Qt 6.9

---
 PKGBUILD     |  5 ++++-
 qt-6.9.patch | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 qt-6.9.patch

diff --git a/PKGBUILD b/PKGBUILD
index ced4a17..99a2d25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=64gram-desktop
 _pkgname=64Gram
 pkgver=1.1.58
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc='Unofficial desktop version of Telegram messaging app'
 arch=('x86_64')
@@ -26,6 +26,7 @@ optdepends=('webkit2gtk: embedded browser features'
 source=("https://github.com/TDesktop-x64/tdesktop/releases/download/v${pkgver}/${_pkgname}-${pkgver}-full.tar.gz"
         "block-sponsored_messages.patch"
         "fix-lzma-link.patch"
+        "qt-6.9.patch"
         "io.github.tdesktop_x64.TDesktop.desktop")

 noextract=("${_pkgname}-${pkgver}-full.tar.gz")
@@ -33,6 +34,7 @@ noextract=("${_pkgname}-${pkgver}-full.tar.gz")
 sha512sums=('e80e33ff847e17ba106d066810e946f628c9af1c90f2035829d7ab8da0b6072639e0480424dd528dc471cc2ce490079b072641519fe704a8ab4d6bb7f37b3d23'
             '0e0f0dcb99ed6c7566e7a75404e39e16c27658eb5999e041a82aa975447ce8719ce6703cc36efc039e16a3ff3721f4a7c76df24f0ead9aa48ce5e23001142072'
             'd813a5ac6ff2208b693ecf494d7bf036087e223662f9f34aaaeafea0afe0fe798e867b9610f7221ea80319865502c20b61310d5a31634b888793873d63322463'
+            'c9ed195bec0cad9331d3414941402b11d45455d1a947d02eac718ba9809329b26aca7ed7ee7a7224f820ed7239a2a2da375731f04bcba2482021e3ec32612f96'
             'ea027bc2d40c74507adf32380444207210a8c31cdba57f3f468d23d8e9c7376647cc8c713f188660f9b1dacd9041227aafd5a27c7889f47ea3985712b6b74b8b')

 prepare() {
@@ -41,6 +43,7 @@ prepare() {
     #patch -Np1 --binary -i ../block-sponsored_messages.patch
     patch -p1 --binary < ../fix-lzma-link.patch
     find "${srcdir}"/ -type f -exec dos2unix {} \;
+    patch -p1 --binary -d Telegram/lib_base < ../qt-6.9.patch
 }

 build() {
diff --git a/qt-6.9.patch b/qt-6.9.patch
new file mode 100644
index 0000000..fd9aae1
--- /dev/null
+++ b/qt-6.9.patch
@@ -0,0 +1,37 @@
+From 3ad1b3cac8850812815058b31c0c025d975d3664 Mon Sep 17 00:00:00 2001
+From: Antonio Rojas <arojas@archlinux.org>
+Date: Sat, 1 Mar 2025 01:20:04 +0100
+Subject: [PATCH] Fix build with Qt 6.9
+
+---
+ base/platform/linux/base_linux_xdp_utilities.cpp | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/base/platform/linux/base_linux_xdp_utilities.cpp b/base/platform/linux/base_linux_xdp_utilities.cpp
+index 8aca67c9..80626af1 100644
+--- a/base/platform/linux/base_linux_xdp_utilities.cpp
++++ b/base/platform/linux/base_linux_xdp_utilities.cpp
+@@ -16,7 +16,11 @@
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+ #include <qpa/qplatformintegration.h>
+ #include <private/qguiapplication_p.h>
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++#include <private/qdesktopunixservices_p.h>
++#else
+ #include <private/qgenericunixservices_p.h>
++#endif // Qt >= 6.9.0
+ #endif // Qt >= 6.5.0
+ 
+ #include <sstream>
+@@ -39,7 +43,11 @@ std::string ParentWindowID(QWindow *window) {
+   }
+ 
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++  if (const auto services = dynamic_cast<QDesktopUnixServices*>(
++#else
+   if (const auto services = dynamic_cast<QGenericUnixServices*>(
++#endif // Qt >= 6.9.0
+       QGuiApplicationPrivate::platformIntegration()->services())) {
+     return services->portalWindowIdentifier(window).toStdString();
+   }
-- 
2.49.0

siinus commented on 2025-01-27 15:06 (UTC)

After https://github.com/TDesktop-x64/tdesktop/commit/bbdcb047d0f321647ca90204f238ef4b35cbb9b5 new patch is needed.

diff --git a/Telegram/SourceFiles/data/components/sponsored_messages.cpp b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
index 54cffbdcff..784a2a314c 100644
--- a/Telegram/SourceFiles/data/components/sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
@@ -210,11 +210,6 @@ void SponsoredMessages::inject(
 }

 bool SponsoredMessages::canHaveFor(not_null<History*> history) const {
-   if (history->peer->isChannel()) {
-       return true;
-   } else if (const auto user = history->peer->asUser()) {
-       return user->isBot();
-   }
    return false;
 }

bigdiff commented on 2024-08-02 12:57 (UTC)

We might need a patch similar to the lzma patch for lz4

context: https://gitlab.archlinux.org/archlinux/packaging/packages/lz4/-/issues/2

kovdan01 commented on 2024-04-17 16:59 (UTC)

After https://github.com/TDesktop-x64/tdesktop/commit/3d481113688041b85523628a06a6863f7e21ed64, block-sponsored-messages.patch is broken. Here is a new version of this patch I've tested locally - please consider changing it here (note that line endings should be dos-style). Thanks!

diff --git a/Telegram/SourceFiles/data/components/sponsored_messages.cpp b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
index d0e9bc5a0..cc7c8a5f9 100644
--- a/Telegram/SourceFiles/data/components/sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
@@ -181,7 +181,7 @@ void SponsoredMessages::inject(
 }

 bool SponsoredMessages::canHaveFor(not_null<History*> history) const {
-   return history->peer->isChannel();
+   return false;
 }

 void SponsoredMessages::request(not_null<History*> history, Fn<void()> done) {

alesar1 commented on 2024-04-01 14:00 (UTC)

@dr460nf1r3 Thank you, it should build fine now.

dr460nf1r3 commented on 2024-04-01 10:21 (UTC) (edited on 2024-04-01 10:22 (UTC) by dr460nf1r3)

Several findings for building this package:

  1. python-packaging missing in makedeps
  2. libxdamage also had to be added
  3. Build failure due to improper line endings in some files could be fixed by adding find "${srcdir}"/ -type f -exec dos2unix {} \; to prepare step and makedeps

alesar1 commented on 2024-01-27 10:08 (UTC)

@xiota Ok, I will add it for the next release.