Package Details: freetube 0.20.0-3

Git Clone URL: https://aur.archlinux.org/freetube.git (read-only, click to copy)
Package Base: freetube
Description: An open source desktop YouTube player built with privacy in mind.
Upstream URL: https://freetubeapp.io
Licenses: AGPL3
Submitter: picokan
Maintainer: picokan
Last Packager: picokan
Votes: 60
Popularity: 3.54
First Submitted: 2020-10-02 22:19 (UTC)
Last Updated: 2024-04-20 13:11 (UTC)

Latest Comments

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

je-vv commented on 2024-04-16 23:54 (UTC) (edited on 2024-04-17 17:16 (UTC) by je-vv)

I found that building with electron30, which is latest on Arch, works quite fine. But running with electron30 gives a segfult:

% freetube
/usr/bin/freetube: line 3: 29805 Segmentation fault      electron /usr/lib/freetube/app.asar "$@"

I have no idea how to run electron apps on GDB, hehe, so I can't tell, but for now you just need a patch so that running is executed with electron29, that would be it.

If in a hurry, just manually edit /usr/bin/freetube, and change electron with electron29. I tested it, and it works fine, whether freetube was built with electron30 or electron29 doesn't matter it just works...

If are into rebuilding, then this is the patch to just execute the app.asar with electron29 instead of electron:

diff -Naur laur/freetube/freetube.sh others/freetube/freetube.sh
--- laur/freetube/freetube.sh   2024-02-24 02:40:05.100867187 -0600
+++ others/freetube/freetube.sh 2024-04-16 17:33:30.238265665 -0600
@@ -1,3 +1,3 @@
 #!/bin/sh

-electron /usr/lib/freetube/app.asar "$@"
+electron29 /usr/lib/freetube/app.asar "$@"
diff -Naur laur/freetube/.git/info/lefthook.checksum others/freetube/.git/info/lefthook.checksum
--- laur/freetube/.git/info/lefthook.checksum   2024-04-04 18:55:25.854934795 -0600
+++ others/freetube/.git/info/lefthook.checksum 2024-04-16 17:35:22.619025624 -0600
@@ -1 +1 @@
-1394d277742ecca749eff87db5035692 1667412205
+1394d277742ecca749eff87db5035692 1713310380
diff -Naur laur/freetube/PKGBUILD others/freetube/PKGBUILD
--- laur/freetube/PKGBUILD      2024-04-04 18:53:05.297409075 -0600
+++ others/freetube/PKGBUILD    2024-04-16 17:34:33.998696806 -0600
@@ -8,7 +8,7 @@
 pkgdesc='An open source desktop YouTube player built with privacy in mind.'
 arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
 license=('AGPL3')
 depends=( 'electron')
+depends=('electron29')
 makedepends=('yarn')
 url=https://freetubeapp.io
 source=(https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz
@@ -16,7 +16,7 @@
         freetube.sh)
 sha256sums=(b30b17c193372aa1704971a947e2392adb63ae9379cbd45790006f9aa4ffa720
             ada2b4b8f6a1e8896acbce4f4d311228d2c86026c273ffa00afa3247294f8b1e
-                       3f4951c6cdb33cc1c4df05606760197efe45321519c259e47656077d6df2af18)
+            6e6f87019452eab4dd75ffe241cebe979fab532596647cdbc42f9a4aaf30cbe5)

 prepare() {
   sed -i "4i electronDist: '/usr/lib/electron'," "$srcdir/$_pkgname-$pkgver-beta/_scripts/ebuilder.config.js"
   sed -i "4i electronDist: '/usr/lib/electron'," "$srcdir/$_pkgname-$pkgver-beta/_scripts/ebuilder.config.js"
@@ -33,7 +33,7 @@
   install -d "${pkgdir}"/usr/lib/${pkgname}
   cp -R "./$_pkgname-$pkgver-beta/build/linux-unpacked/resources/app.asar" "$pkgdir/usr/lib/$pkgname"
   install -Dm755 "./freetube.sh" "$pkgdir/usr/bin/$pkgname"
-
+
   cd $_pkgname-$pkgver-beta
   install -Dm644 "./_icons/icon.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
   cd ..
diff -Naur laur/freetube/.SRCINFO others/freetube/.SRCINFO
--- laur/freetube/.SRCINFO      2024-04-04 18:53:05.297409075 -0600
+++ others/freetube/.SRCINFO    2024-04-16 17:47:50.430754923 -0600
@@ -11,7 +11,7 @@
        arch = aarch64
        license = AGPL3
        makedepends = yarn
-       depends = electron
+       depends = electron29
        source = https://github.com/FreeTubeApp/FreeTube/archive/v0.20.0-beta.tar.gz
        source = freetube.desktop
        source = freetube.sh

With this patch you're all set... You can run freetube with electron29 and build with electron without specifying the version... You can try rebuilding with this patch. That's what I'd suggest @picokan to do, instead change everything to electron29, besides we need to keep trying on coming versions if electron29 is not longer a requirement.

Is that what you are experiencing @tuxayo? I guess the quick fix of just editing /usr/bin/freetube is more than enough for now. The patch was for me to provide it here and propose it to @picokan

tuxayo commented on 2024-04-16 22:30 (UTC) (edited on 2024-04-16 23:09 (UTC) by tuxayo)

Rebuild isn't enough after the last electron update. Dependency needs to be changed to the previous version.

Start might randomly work though. After a rebuild, I'm able to get it start 1/10 of the time.

picokan commented on 2024-02-24 07:51 (UTC)

@darktohka The v.0.19.1 was using an older electron, I've updated it now that 0.19.2 came out.

@doblerone I don't have any crashes when playing a video, so I can't debug it for you. You'll have to debug it yourself and see if it's a problem with how I packaged freetube or if it's a problem with freetube itself and open an issue in its github repo.

doblerone commented on 2024-02-01 17:54 (UTC)

Please update as it crashes on my system when trying to reproduce a video: Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.

darktohka commented on 2024-01-31 08:38 (UTC)

Hello, can you please upgrade the PKGBUILD to use electron28? Freetube is now targeting Electron version 28, not 22

picokan commented on 2023-10-15 06:51 (UTC)

@chrrybmb I saw this, but I haven't added it as a dependency because I can't replicate it. Even when I compile and run freetube without ttf-liberation it runs without any of the text glitches in that issue, so I'm not completely convinced that it is the cause.

chrrybmb commented on 2023-10-10 00:20 (UTC)

ttf-liberation should be added as a dependency.

https://github.com/FreeTubeApp/FreeTube/issues/2782#issuecomment-1678091422

picokan commented on 2023-10-09 06:48 (UTC)

@yochananmarqos Thank you, I changed the commands and removed the npm dependency.

@sp1cyf0x That doesn't look like a Freetube specific error, can you check that the file /usr/lib/libdav1d.so.7 exists?

<deleted-account> commented on 2023-10-06 19:13 (UTC)

I'm getting /usr/lib/electron22/electron: error while loading shared libraries: libdav1d.so.7: cannot open shared object file: No such file or directory after electron 22.3.25-2 update.

yochananmarqos commented on 2023-10-03 00:50 (UTC)

@picokan: This does not use npm, only yarn.

  export YARN_CACHE_FOLDER="$srcdir/yarn-cache"
  yarn install
  yarn run build