Extend to support custom user flags
Task Info (Flyspray) | |
---|---|
Opened By | Evangeline Rome (nikelborm) |
Task ID | 80137 |
Type | Feature Request |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-11-02 01:44:03 UTC |
Status | Assigned |
Assignee | Sven-Hendrik Haase (Svenstaro) |
Details
Description: Many electron applications on Wayland require additional flags to run in wayland mode and not in xwayland. For example this is needed to avoid blurriness caused by xwayland when gnome user set fractional scaling in their system.
Since there is no way to contribute to arch obsidian package repo, somebody please update obsidian.sh
to this:
#!/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
This is done in some packages already (e.g. extra/code, aur/youtube-music, aur/code) and it works fine.
Would be great to have that for obsidian!