mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #230] Confusion about default barrier.conf on Arch Linux #184
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alesandar on GitHub (Jan 18, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/230
Operating Systems
Server: Arch Linux
Client: Arch Linux
Barrier Version
2.2.0
Steps to reproduce bug
On both of my systems, if I try to start the server, without explicitly specifying a path to the configuration file, it fails with
barriers: no configuration available. Themanpage clearly says:The user-specific file exists. The latter one (system-wide) does not, but that does not really matter.
In fact, everything passes fine if I copy that configuration file path from the manual page and start the server with
barriers -c $HOME/.local/share/barrier/barrier.conf.Investigating further, I've started barriers with
-d DEBUG2option. Here's a partial output:It is looking in the right directory, but for a hidden
.barrier.conffile?What do you think, is this a bad documentation or a wrong path?
Once I've made the file hidden, barriers has been initialized normally, but I do not think that it makes any sense to keep a hidden file inside a hidden directory. Imagine all your dotfiles in
$HOME/.configbeing nested inside other hidden directories.By the way, it seems like my synergys version prefers
$HOME/.synergy.confas a user-specific configuration file (or at least that's what their manual page says), but in my opinion it's better if we follow the XDG specifications.@AdrianKoshka commented on GitHub (Jan 18, 2019):
I'm not 100%, but I think we look in
$xdg_config_home, which should be~/.config/barrier. Maybe the manpages haven't been updated to reflect this?@tedder commented on GitHub (Feb 6, 2019):
fwiw
barriers --helplists the correct location for Ubuntu (~/.local/share/barrier/.barrier.conf, note it is.barrier.conf). However the man page listsbarrier.conf.It kinda makes sense, because the SSL files are in that folder. But the .barrier vs barrier thing is strange to me.
@AdrianKoshka commented on GitHub (Feb 6, 2019):
Hrmm, I wonder if this was a typo made when I had barrier switch over to XDG spec.
@AdrianKoshka commented on GitHub (Feb 6, 2019):
Looking at the commit, I don't right off see a reason that the file should be hidden? I'll try to look into it later.
642eb33446@makesitgood commented on GitHub (Nov 19, 2019):
@hanatokitsu commented on GitHub (May 8, 2020):
I think @AdrianKoshka is right; the config file should live in $XDG_CONFIG_HOME since this is explicitly a user defined configuration file, not $XDG_DATA_HOME for application data.
@simons-public commented on GitHub (May 9, 2020):
@expl0ratory What are the permissions on those files and what user is the
barriersprocess running under?Also is this installed with snap? It may not have access to the real
/etcor be looking in the actual$HOMEdirectory if it is.You might try installing from AUR with barrier or barrier-git and see if you still have the issue.