Package Details: logseq-desktop 0.10.9-2

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: 28
Popularity: 0.92
First Submitted: 2021-03-28 16:28 (UTC)
Last Updated: 2024-11-01 02:49 (UTC)

Latest Comments

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

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

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

@zany130

It's strange to see.

ls /opt/logseq-desktop/Logseq -lh
"/opt/logseq-desktop/Logseq": Permission denied (os error 13)

What's your outout of ls / -lh | grep opt and ls /opt -lh | grep logseq?

I expect the see the following:

:) ls / -lh | grep opt
drwxr-xr-x  13 root root  209 Nov 29 02:14 opt
:) ls /opt -lh | grep logseq
drwxr-xr-x 4 root root 4.0K Jan 13 02:57 logseq-desktop

zany130 commented on 2023-02-03 17:08 (UTC) (edited on 2023-02-03 17:10 (UTC) by zany130)

@xuanwo

ls /usr/bin/logseq -lh
Permissions Size User Date Modified Name
lrwxrwxrwx    26 root  2 Feb 19:11   /usr/bin/logseq -> /opt/logseq-desktop/Logseq
ls /opt/logseq-desktop/Logseq -lh
"/opt/logseq-desktop/Logseq": Permission denied (os error 13)

 ╭─zany130@Garuda in ~ via  v3.10.9 as 🧙 took 1ms
[🔴] × sudo ls /opt/logseq-desktop/Logseq -lh
-rwxr-xr-x 1 root root 147M Feb  2 19:11 /opt/logseq-desktop/Logseq

xuanwo commented on 2023-02-03 13:14 (UTC)

@zany130

Interesting. Can you give the output of ls /usr/bin/logseq -lh?