Package Details: obsidian-bin 1.5.12-1

Git Clone URL: https://aur.archlinux.org/obsidian-bin.git (read-only, click to copy)
Package Base: obsidian-bin
Description: A powerful knowledge base that works on top of a local folder of plain text Markdown files
Upstream URL: https://github.com/obsidianmd/obsidian-releases
Keywords: markdown obsidian
Licenses: custom:commercial
Conflicts: obsidian
Submitter: AronYoung
Maintainer: rainbus (GrzegorzKozub)
Last Packager: rainbus
Votes: 6
Popularity: 0.67
First Submitted: 2023-08-24 13:32 (UTC)
Last Updated: 2024-04-24 02:22 (UTC)

Latest Comments

rainbus commented on 2024-03-25 09:47 (UTC)

@GrzegorzKozub, thank you for your PKGBUILD. Everything works well after adding those options. I've incorporated these options into the PKGBUILD and updated it to version 1.5.11. I have also added you as a co-maintainer.

GrzegorzKozub commented on 2024-03-23 08:14 (UTC)

Can you add me as co-maintainer, rainbus?

GrzegorzKozub commented on 2024-03-23 07:58 (UTC) (edited on 2024-03-23 07:59 (UTC) by GrzegorzKozub)

I was able to work around this bug while also updating to 1.5.11. Here's the PKBUILD. Please update :)

# Maintainer: Rain&Bus <rainandbus@gmail.com>
# Maintainer: Aron Young <tkf6fkt at gmail dot com>
_pkgname=obsidian
pkgname=obsidian-bin
pkgver=1.5.11
pkgrel=1
pkgdesc="A powerful knowledge base that works on top of a local folder of plain text Markdown files"
arch=('x86_64' 'aarch64')
url="https://github.com/obsidianmd/obsidian-releases"
license=('custom:Commercial')
depends=('fuse2')
conflicts=('obsidian')

# https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/19
options=('!debug' '!strip')

source_x86_64=(${pkgname}-${pkgver}-x86_64.AppImage::"${url}/releases/download/v${pkgver}/Obsidian-${pkgver}.AppImage")
source_aarch64=(${pkgname}-${pkgver}-aarch64.AppImage::"${url}/releases/download/v${pkgver}/Obsidian-${pkgver}-arm64.AppImage")
sha256sums_x86_64=('73f6d9e2bad7a6766d3d40b24757afe042f4d90f082efefdab8b8a31193b2494')
sha256sums_aarch64=('14e16dba3157525572d3e0fa4ea091ae86ff9e58dca56802193bf97c205ae838')

prepare() {
    _appimage="${pkgname}-${pkgver}-${CARCH}.AppImage"
    cd ${srcdir}
    chmod +x ${_appimage}
    ./${_appimage} --appimage-extract ${_pkgname}.desktop
    ./${_appimage} --appimage-extract usr/share/icons/hicolor/128x128/apps/${_pkgname}.png
    chmod -R a-x+rX squashfs-root/usr
}

package() {
    _appimage="${pkgname}-${pkgver}-${CARCH}.AppImage"
    install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
    install -dm755 "${pkgdir}/usr/bin"
    ln -s "/opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"

    sed -i "s|Exec=AppRun --no-sandbox %U|Exec=/usr/bin/${_pkgname} --no-sandbox %U|" "${srcdir}/squashfs-root/${_pkgname}.desktop"
    install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"

    install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/128x128/apps/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
}

AronYoung commented on 2023-12-10 04:51 (UTC)

I've recently disowned the obsidian-bin package.If you're interested in adopting this package, please feel free to do so

rainbus commented on 2023-12-03 11:25 (UTC)

Hello AronYoung! I find Obsidian offer an appimage to aarch64 platform, can you add that to PKGBUILD? Thanks.

https://github.com/obsidianmd/obsidian-releases/releases/download/v1.4.16/Obsidian-1.4.16-arm64.AppImage

fissium commented on 2023-11-17 14:26 (UTC)

Hi. I agree with @nikelebron. It would be great to add the ability to use theobsidian-flags.conf flag.

nikelborm commented on 2023-11-02 01:48 (UTC) (edited on 2023-11-02 01:55 (UTC) by nikelborm)

@stickyburn, You can run it on wayland with few flags.

I added them to my .bashrc for easier access as an alias.

alias obsidian='nohup obsidian --enable-ozone --ozone-platform=wayland &'

Also you may add them to your /usr/share/applications/obsidian.desktop so they are applied when you launch obsidian from your start menu.

The best way to do it is to make /sbin/obsidian a bit smarter in a way many applications based on electron (e.g. vscode, youtube-music) already did:

#!/bin/bash

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/obsidian-flags.conf ]]; then
   OBSIDIAN_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/obsidian-flags.conf | tr '\n' ' ')"
fi

# Launch
exec /bin/electron /usr/lib/obsidian/app.asar "$@" $OBSIDIAN_USER_FLAGS

I already asked archlinux devs to add this to obsidian package here, but it would be great if aur/obsidian-bin will be updated in a similar way too.

stickyburn commented on 2023-10-09 18:12 (UTC)

Hello! How can I start obsidian with wayland?