Skip to content
Snippets Groups Projects
Commit c7f87f84 authored by Dylan Van Assche's avatar Dylan Van Assche Committed by Michał Polański
Browse files

community/audacity: force X11 instead of Wayland

Audacity leaks a lot of memory under Wayland while not under X11.
Enforcing Audacity to run under X11 makes it finally usable
for recording audio when using Wayland based compositors.
parent 2b8a97c4
No related branches found
No related tags found
1 merge request!20769community/audacity: force X11 instead of Wayland
From ff67cdd8ef68ba293719bc249555268bc598549c Mon Sep 17 00:00:00 2001
From: Dylan Van Assche <me@dylanvanassche.be>
Date: Sat, 24 Apr 2021 07:44:21 +0200
Subject: [PATCH] audacity.desktop: force X11 instead of Wayland
Audacity leaks a lot of memory under Wayland when recording.
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12634
---
src/audacity.desktop.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audacity.desktop.in b/src/audacity.desktop.in
index 71d3cb4e7..00b210062 100644
--- a/src/audacity.desktop.in
+++ b/src/audacity.desktop.in
@@ -50,7 +50,7 @@ Icon=@AUDACITY_NAME@
Type=Application
Categories=AudioVideo;Audio;AudioVideoEditing;
-Exec=env UBUNTU_MENUPROXY=0 @AUDACITY_NAME@ %F
+Exec=env UBUNTU_MENUPROXY=0 env GDK_BACKEND=x11 @AUDACITY_NAME@ %F
StartupNotify=false
Terminal=false
MimeType=application/x-audacity-project;@MIMETYPES@
--
2.31.1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity pkgname=audacity
pkgver=2.4.2 pkgver=2.4.2
pkgrel=1 pkgrel=2
pkgdesc="Multitrack audio editor" pkgdesc="Multitrack audio editor"
url="https://www.audacityteam.org/" url="https://www.audacityteam.org/"
arch="all" arch="all"
...@@ -28,6 +28,7 @@ makedepends=" ...@@ -28,6 +28,7 @@ makedepends="
" "
subpackages="$pkgname-doc $pkgname-lang" subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/audacity/audacity/archive/Audacity-$pkgver.tar.gz source="https://github.com/audacity/audacity/archive/Audacity-$pkgver.tar.gz
0001-audacity.desktop-force-X11-instead-of-Wayland.patch
lame.pc" lame.pc"
builddir="$srcdir"/audacity-Audacity-$pkgver builddir="$srcdir"/audacity-Audacity-$pkgver
...@@ -66,4 +67,5 @@ package() { ...@@ -66,4 +67,5 @@ package() {
} }
sha512sums="0d9cdabf5ba2c7207e8d8e4a8bdfc3e7d32277386436ecb480e3ff781720f5449a56b310ba91c78ca67afb752e2ab736abd5b7ce40d19d153bfc4a2067343a3d Audacity-2.4.2.tar.gz sha512sums="0d9cdabf5ba2c7207e8d8e4a8bdfc3e7d32277386436ecb480e3ff781720f5449a56b310ba91c78ca67afb752e2ab736abd5b7ce40d19d153bfc4a2067343a3d Audacity-2.4.2.tar.gz
43556b6c9f4ea874c313a222c82db8b431f63d3c3cd71c00b4133c82f54d17682dc904de54d7de0f5df371a823adf7584bddab0884487187b047e5dbd8ef6c78 0001-audacity.desktop-force-X11-instead-of-Wayland.patch
c82375495c8332c600a636c87db3ef884b86b6e854afab5ff93f1214e96e18f3b8704cdaead017046fda1b0ae29ccf39ff14754aebf4c397911f1506cd7da6f2 lame.pc" c82375495c8332c600a636c87db3ef884b86b6e854afab5ff93f1214e96e18f3b8704cdaead017046fda1b0ae29ccf39ff14754aebf4c397911f1506cd7da6f2 lame.pc"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment