Package Details: logseq-desktop 0.10.9-1

Git Clone URL: https://aur.archlinux.org/logseq-desktop.git (read-only, click to copy)
Package Base: logseq-desktop
Description: Privacy-first, open-source platform for knowledge sharing and management
Upstream URL: https://github.com/logseq/logseq
Licenses: AGPL-3.0-or-later
Submitter: xuanwo
Maintainer: xiota
Last Packager: xiota
Votes: 25
Popularity: 0.26
First Submitted: 2021-03-28 16:28 (UTC)
Last Updated: 2024-04-30 14:33 (UTC)

Pinned Comments

xiota commented on 2024-01-15 00:17 (UTC) (edited on 2024-01-15 00:19 (UTC) by xiota)

This package sets HOME=${SRCDEST:-$startdir}/node-home to avoid cluttering the user home directory, while allowing data (over 4GB) to be reused between builds. $srcdir is not used for this purpose because it can be wiped between runs.

xiota commented on 2023-09-11 03:34 (UTC) (edited on 2024-01-14 17:37 (UTC) by xiota)

This is interesting. I have different results on two different computers. (AMD vs Intel?) Will go ahead and bump versions. Any users who have the same build failure, try rolling back to 0.9.13 or use the -bin package.

No need to re-report the same issue. I'll update if I find a solution.

Note: No solution as of Jan 2024.

xiota commented on 2023-08-23 07:46 (UTC) (edited on 2023-12-03 06:07 (UTC) by xiota)

Clean chroot. Attempting to build after bumping to 0.9.14 or later results in error. Possibly related to AMD processors. Anyone know how to fix?

[4/4] Building fresh packages...
$ yarn build:amplify
$ parcel build ./src/amplify.ts --no-source-maps
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in prepare().

Latest Comments

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

xiota commented on 2023-08-23 07:46 (UTC) (edited on 2023-12-03 06:07 (UTC) by xiota)

Clean chroot. Attempting to build after bumping to 0.9.14 or later results in error. Possibly related to AMD processors. Anyone know how to fix?

[4/4] Building fresh packages...
$ yarn build:amplify
$ parcel build ./src/amplify.ts --no-source-maps
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in prepare().

BlackLotus89 commented on 2023-06-17 17:56 (UTC)

Only tested this on aarch64

diff --git a/PKGBUILD b/PKGBUILD
index 51fa2c4..672ec46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=logseq-desktop
 pkgver=0.9.9
 pkgrel=1
 pkgdesc="A privacy-first, open-source platform for knowledge sharing and management."
-arch=("x86_64")
+arch=("x86_64" "aarch64")
 url="https://logseq.com"
 license=('AGPL3')
 makedepends=("git" "yarn" "npm" "clojure" "nodejs>=16")
@@ -58,11 +58,21 @@ build() {

 package() {
     # important files are under static/out/Logseq-linux-x64
+    if [ "${CARCH}" == "aarch64" ];then
+    cd "${srcdir}/logseq-${pkgver}/static/out/Logseq-linux-arm64"
+    elif [ "${CARCH}" == "x86_64" ];then
     cd "${srcdir}/logseq-${pkgver}/static/out/Logseq-linux-x64"
+    else
+    cd "${srcdir}/logseq-${pkgver}/static/out/Logseq-linux-"*
+    fi
+

     # create destination folder and copy files
+    # maybe we should just write logseq-desktop instad of using $pkgname
+    # has no real advantage here
     mkdir -p "${pkgdir}/opt/${pkgname}"
     cp -a -r -u --verbose ./ "${pkgdir}/opt/${pkgname}"
+    chmod o+rx "${pkgdir}/opt/logseq-desktop/"

     # create a soft link to the executable
     mkdir -p "${pkgdir}/usr/bin"

ddavo commented on 2023-03-29 10:38 (UTC)

Just came from logseq-desktop-bin, and trying to open logseq from terminal gave me the following error:

/usr/bin/logseq: line 15: /opt/logseq-desktop/Logseq: Permission denied

/opt/logseq-desktop has permissions 700, so I fixed it with the following command:

sudo chmod o+rx /opt/logseq-desktop

karl commented on 2023-03-12 13:06 (UTC)

The bundled logseq-desktop.desktop needs an update in order to make the login process (required for Logseq Sync) functional. The login is done in the browser and redirects back to Logseq. For this to work, this line:

Exec=/usr/bin/logseq

needs to be changed to:

Exec=/usr/bin/logseq %u

According to the corresponding PR in the Logseq repo (https://github.com/logseq/logseq/pull/7219), this line is also advisable to add, although it was not necessary to get my login working:

MimeType=x-scheme-handler/logseq

Thanks!

xuanwo commented on 2023-02-28 02:20 (UTC)

@aeonik, Thanks for the report, fixed now!

aeonik commented on 2023-02-27 18:33 (UTC) (edited on 2023-02-27 18:34 (UTC) by aeonik)

Build for 0.8.17-2 is failing on my system.

Error:
install: cannot stat 'logseq-desktop.sh': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: logseq-desktop

More information:

❯ sudo find ~/.cache -name "logseq-desktop.sh"
/home/aeonik/.cache/yay/logseq-desktop/src/logseq-desktop.sh
/home/aeonik/.cache/yay/logseq-desktop/logseq-desktop.sh

❯ ls -lart ~/.cache/yay/logseq-desktop/src/logseq-desktop.sh
lrwxrwxrwx 1 aeonik aeonik 54 Feb 27 12:39 /home/aeonik/.cache/yay/logseq-desktop/src/logseq-desktop.sh -> /home/aeonik/.cache/yay/logseq-desktop/logseq-desktop.sh

❯ ls -lart ~/.cache/yay/logseq-desktop/logseq-desktop.sh
-rw-r--r-- 1 aeonik aeonik 481 Feb 27 12:33 /home/aeonik/.cache/yay/logseq-desktop/logseq-desktop.sh

❯ ls -a /home/aeonik/.cache/yay/logseq-desktop/src/logseq-0.8.17/static/out/Logseq-linux-x64
.                        icudtl.dat            LICENSE                 snapshot_blob.bin
..                       libEGL.so             LICENSES.chromium.html  v8_context_snapshot.bin
chrome_100_percent.pak   libffmpeg.so          locales                 version
chrome_200_percent.pak   libGLESv2.so          Logseq                  vk_swiftshader_icd.json
chrome_crashpad_handler  libvk_swiftshader.so  resources
chrome-sandbox           libvulkan.so.1        resources.pak

As you can see, there is no logseq-desktop.sh file at the path: /home/aeonik/.cache/yay/logseq-desktop/src/logseq-0.8.17/static/out/Logseq-linux-x64

I changed line 70 in the PKGBUILD from

install -m755 logseq-desktop.sh "${pkgdir}/usr/bin/logseq"

to

install -m755 "${srcdir}/logseq-desktop.sh" "${pkgdir}/usr/bin/logseq"

And this seems to have fixed the problem.

Regards,

Aeonik

zany130 commented on 2023-02-04 21:40 (UTC) (edited on 2023-02-05 21:18 (UTC) by zany130)

I didn't do anything special, just installed logseq-desktop from the chaotic aur (I also reported the issue here https://github.com/chaotic-aur/packages/issues/2270). When I tried running logseq it will give me the below issues, so I uninstalled it and reinstalled it with the aur package and the same issue.

Your other logseq package https://aur.archlinux.org/packages/logseq-desktop-bin works without issues however

xuanwo commented on 2023-02-04 03:39 (UTC)

@zany130

drwx------     - root  3 Feb 12:07   logseq-desktop

This is the root cause. User can't list this dir, thus can't execute logseq under this dir. Please run chmod -R og+rx /opt/logseq-desktop to fix this.

Further, you need to figure out why logseq-desktop dir has been set like this. Have you chmod it?

zany130 commented on 2023-02-03 20:18 (UTC)

ls / -lh | grep opt
drwxr-xr-x     - root  3 Feb 12:07   opt

 ╭─zany130@Garuda in ~ via  v3.10.9 took 11ms
 ╰─λ ls /opt -lh | grep logseq
drwx------     - root  3 Feb 12:07   logseq-desktop