Package Details: pear-desktop-arjix-git 3.11.4.r48.g1fe490f-2

Git Clone URL: https://aur.archlinux.org/pear-desktop-arjix-git.git (read-only, click to copy)
Package Base: pear-desktop-arjix-git
Description: Extension for music player
Upstream URL: https://github.com/ArjixWasTaken/pear-desktop
Licenses: MIT
Conflicts: pear-desktop, pear-desktop-arjix, youtube-music
Provides: pear-desktop, pear-desktop-arjix
Submitter: ArjixWasTaken
Maintainer: ArjixWasTaken
Last Packager: ArjixWasTaken
Votes: 2
Popularity: 0.28
First Submitted: 2026-04-08 07:03 (UTC)
Last Updated: 2026-04-09 10:11 (UTC)

Latest Comments

theslees commented on 2026-06-27 00:13 (UTC) (edited on 2026-06-27 00:14 (UTC) by theslees)

@skare1412 Your solution works great! I used npm install --prefix "/usr/lib/pear-desktop" @dehoist/romanize-thai @electron-toolkit/tsconfig @electron/remote @ffmpeg.wasm/core-mt @ffmpeg.wasm/main @floating-ui/dom @foobar404/wave @ghostery/adblocker-electron @ghostery/adblocker-electron-preload @hono/node-server @hono/node-ws @hono/swagger-ui @hono/zod-openapi @hono/zod-validator @indic-transliteration/sanscript @jellybrick/dbus-next @jellybrick/electron-better-web-request @jellybrick/mpris-service @mdui/icons @skyra/jaro-winkler @xhayper/discord-rpc async-mutex bgutils-js butterchurn butterchurn-presets chinese-conv color conf custom-electron-prompt deepmerge-ts electron-debug electron-is electron-localshortcut electron-store electron-unhandled electron-updater es-hangul fast-average-color fast-equals fflate filenamify hanja happy-dom hono howler html-to-text i18next keyboardevent-from-electron-accelerator keyboardevents-areequal kuromoji kuroshiro kuroshiro-analyzer-kuromoji lazy-var mdui node-html-parser node-id3 peerjs pinyin-pro semver serve socks solid-element solid-floating-ui solid-js solid-styled-components solid-transition-group tinyld virtua vudio x11 youtubei.js zod to directly install the required modules into the application's directory. Thanks!

skare1412 commented on 2026-06-14 16:37 (UTC) (edited on 2026-06-14 16:38 (UTC) by skare1412)

Thank you @theslees that was indeed the issue. But because of the amount of packages missing (and afaik installing npm packages globally like that is not recommended on arch) I did a small workaround by copying the node_modules folder (without devDependencies) into the app directory (very dirty solution I know but it works).


diff --git a/PKGBUILD b/PKGBUILD
index 4031c2a..3fd9417 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@

 pkgname=pear-desktop-arjix-git
 _app_id=com.github.th_ch.youtube_music
-pkgver=3.11.4.r48.g1fe490f
-pkgrel=2
+pkgver=3.11.4.r80.gadbf1bd
+pkgrel=1
 _nodeversion=24
-_electronversion=40
+_electronversion=42
 pkgdesc="Extension for music player"
 arch=('x86_64')
 url="https://github.com/ArjixWasTaken/pear-desktop"
@@ -19,6 +19,8 @@ makedepends=(
   'nvm'
   'pnpm'
 )
+# Remove strip option as it takes forever for the node_modules folder
+options=(!strip)
 provides=("${pkgname%-arjix-git}" "${pkgname%-git}")
 conflicts=("${pkgname%-arjix-git}" "${pkgname%-git}" 'youtube-music')
 install="${pkgname%-arjix-git}.install"
@@ -60,18 +62,27 @@ build() {
   electronDist="/usr/lib/electron${_electronversion}"
   electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)"
   _ensure_local_nvm
-  pnpm install --frozen-lockfile
+
+  pnpm approve-builds --all
+  pnpm install
   pnpm clean
   pnpm build
   pnpm electron-builder --linux dir \
     ${dist} -c.electronDist=${electronDist} -c.electronVersion=${electronVer}
+
+  pnpm prune --prod
 }

+
 package() {
   cd "${pkgname%-arjix-git}"
+  
   install -Dm644 pack/linux-unpacked/resources/app.asar -t "$pkgdir/usr/lib/${pkgname%-arjix-git}/"
   cp -r pack/linux-unpacked/resources/app.asar.unpacked "$pkgdir/usr/lib/${pkgname%-arjix-git}"

+  # Workaround: Copy node_modules into the app directory
+  cp -r node_modules "$pkgdir/usr/lib/${pkgname%-arjix-git}/node_modules"
+
   install -Dm755 "$srcdir/${pkgname%-arjix-git}.sh" "$pkgdir/usr/bin/${pkgname%-arjix-git}"
   install -Dm644 "$srcdir/${_app_id}.desktop" -t "$pkgdir/usr/share/applications/"
   install -Dm644 assets/icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/${_app_id}.png"

ArjixWasTaken commented on 2026-06-13 15:03 (UTC)

Then smth wrong is going with the vite config.

theslees commented on 2026-06-13 15:02 (UTC)

@ArjixWasTaken

They are not bundled, and the only way to get this application working is by installing them externally into root with sudo npm install -g

This applies to your AUR and repository (https://repo.arjix.dev) builds of this package.

ArjixWasTaken commented on 2026-06-13 14:04 (UTC) (edited on 2026-06-13 14:06 (UTC) by ArjixWasTaken)

All npm dependencies are bundled with the app, so installing them externally will do nothing.

Edit: at least that should be the case?

theslees commented on 2026-06-13 13:59 (UTC) (edited on 2026-06-13 15:03 (UTC) by theslees)

@skare1412 you must install the missing npm package with sudo npm install -g electron-is, and any other modules it complains about.

skare1412 commented on 2026-05-25 20:28 (UTC)

When I try to use this I get an error when I start the app. I am not sure if the issue is on my side. The stable release version (pear-desktop-bin) works. I can observe this error with this package as well as with the precompiled one you provide under https://repo.arjix.dev/

App threw an error during load Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'electron-is' imported from /usr/lib/pear-desktop/app.asar/dist/main/config-DReKyrVZ.js ... A JavaScript error occurred in the main process ... [231976:0525/221957.524936:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.systemd1.Manager.StartTransientUnit: object_path= /org/freedesktop/systemd1: org.freedesktop.systemd1.UnitExists: Unit app-org.chromium.Chromium-231976.scope was already loaded or has a fragment file.

Khai1705 commented on 2026-04-10 04:56 (UTC)

I started using Arch 3 weeks ago so I dont actually understand what this error mean... is it because I uninstalled pear-desktop-bin incorrectly?

Error launching app Unable to find Electron app at /usr/lib/pear-desktop/app.asar Cannot find module '/usr/lib/pear-desktop/app.asar'