Search Criteria
Package Details: filen-desktop-git 3.0.53.r0.g370514d-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/filen-desktop-git.git (read-only, click to copy) |
|---|---|
| Package Base: | filen-desktop-git |
| Description: | Desktop client including Syncing, Virtual Drive mounting, S3, WebDAV, File Browsing, Chats, Notes, Contacts and more.Use system-wide electron. |
| Upstream URL: | https://filen.io/ |
| Keywords: | client desktop drive explorer s3 sync virtual webdav |
| Licenses: | AGPL-3.0-only |
| Conflicts: | filen-desktop |
| Provides: | filen-desktop |
| Submitter: | zxp19821005 |
| Maintainer: | zxp19821005 |
| Last Packager: | zxp19821005 |
| Votes: | 1 |
| Popularity: | 0.000000 |
| First Submitted: | 2024-09-12 10:34 (UTC) |
| Last Updated: | 2026-08-21 03:20 (UTC) |
Dependencies (8)
- electron43 (electron43-binAUR)
- rclone (rclone-aliyundrive-gitAUR, rclone-gitAUR, rclone-filen-gitAUR, bclone-gitAUR, rclone-studip-gitAUR, bclone-binAUR, bcloneAUR, rclone-tgdrive-binAUR, rclone-beta-binAUR)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- gendesk (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- jq (jq-gitAUR, jq-staticAUR, jaq-gitAUR, jaq-binAUR) (make)
- npm (npm-corepackAUR, python-nodejs-wheelAUR) (make)
- nvm (nvm-gitAUR) (make)
Latest Comments
spiraljng commented on 2026-08-21 03:42 (UTC)
@zxp19821005 Thank you for the quick reply!
I did a bit of thinking on this. I do see where the conveinence factor comes in, but I do think that it does feel a bit out of character for the AUR. I think a better approach would to be setting a custom environment variable, like
USE_NPM_MIRRORor something similar. Then, during the install process we can add in an error handler and tell the user that the connection to npm failed and recommend that they re-run it with something likeUSE_NPM_MIRROR=1 paru -S filen-desktop-git. Alternatively, you could skip the ENV middleman entirely and switch to the npm mirror upon errorI stand corrected! I figured that it would break chroot environments, but seeing that exceptions were made for this exact reason, I fully agree that sticking with nvm is the right call here
As for the rest, I am happy to have been of help
zxp19821005 commented on 2026-08-21 02:15 (UTC) (edited on 2026-08-21 02:20 (UTC) by zxp19821005)
@spiraljng Thanks for the detailed review! I appreciate you taking the time to go through the PKGBUILD. Let me address a few of your points:
1. China IP Check
I understand the concern about chroot builds and AUR rules, and I agree it's not ideal. However, this check doesn't affect users outside China at all — it only adds a registry mirror for users inside China. For users in China, without this step the npm install step will almost certainly fail due to network restrictions, making the package unbuildable for them. I'd prefer to keep it as a convenience for Chinese users, but I'm open to discussing alternative approaches if you have suggestions.
2. NVM vs. System nodejs
Using nvm is actually the recommended approach on Arch for packages that need a specific Node.js version. The Arch wiki explicitly recommends nvm for managing Node versions in build environments — see the Node.js page on the Arch Wiki. Pinning to nodejs>=24 from the official repos could cause issues if the system node version drifts or if the project has strict version requirements. I'd like to keep nvm for version stability.
3. _get_electron_version
You're right that it appears unused — that's actually my oversight. I forgot to wire it into the build process, but it is necessary for correctly determining which Electron version to use. I'll make sure it's properly integrated in the next update. For the other points you raised — the ESLint sed quoting fix, the rclone/fetch.mjs not being executed, the .desktop file path, and the arch=('x86_64') change — those are all valid and I'll incorporate them. Thanks for catching those!
spiraljng commented on 2026-08-20 19:12 (UTC) (edited on 2026-08-20 19:34 (UTC) by spiraljng)
I was reading the PGKBUILD and noticed a few things that you should change to clean it up a bit:
You should probably remove the China IP check. Chinese users should take it upon themselves to change their npm registry, and I am fairly sure that it is against the AUR rules (or at the very least, it would break chroot builds). I understand you meant no harm by it, but it would be safer and stabler to skip it entirely
Using NVM to download node is redundant, seeing as we could just install node directly with Arch's official repos. I would suggest dropping the
nvmdependency all-together and usingnodejs>=24or something similar_get_electron_versionseems to never be used. Kinda nit picky, but I'd remove it anyway just for readabilityI changed to
arch=('x86_64')because rclone is pre-compiled AMD64While I was compiling this, I encountered an error with ESlint. I was able to fix it by changing line 88 to be
find src -type f -exec sed -i "s/process.resourcesPath/\"\/usr\/lib\/${pkgname%-git}\"/g" {} +(the single quotes was what tripped it up)Another issue i encountered while compiling was that
rclone/fetch.mjswasn't executed.I noticed the .desktop file was being saved in the wrong place (Line 104)
After all my tinkering, here was the final PKGBUILD file I was left with.
I hope this helps, and thank you for contributing