Skip to content

u/Fallenalien22

In this archive from Jan 2016 to Aug 2022

61
posts
765
comments
21
media
2.8k
score
3 saved before deletion

Not a question, but I wanted to share what I've been working on: Bark! the daemon launcher, logger, notifier, "watchdog"

I launch a lot of daemons in my wm's startup file (compositor, panels, nm-applet, ...). Sometimes, these daemons crash without my noticing. Ok, if it's a panel, you'll notice, but imagine if dunst crashes. When trying to figure out WHY these things crash, I pipe stderr to a log file. Then I git push / git pull my dots to my other computer and my daemons are suddently silently never launching because I didn't touch the log file on the new machine. Not very robust.

This is my solution to both of these problems. It is a launcher, logger, and a notifier. Running

bark picom -- picom --vsync

will start the process named picom whose command is picom --vsync (name is only used internally for notifying). If ever the command exits, a notification is displayed. stdout and stderr will go to ~/.cache/bark/picom.log. bark logs picom prints the log file, and bark logs picom -f "follows" the log file, printing new lines as they are written to the file.

I called it Bark! because its function reminds me of a watchdog (though it is not a watchdog (yet ๐Ÿ˜‰)) and because when your program exits, it "barks" at you (sends a notification).

I thought I'd share this here in case fellow wm users find this useful. I am also curious if anybody else has a similar solution to this problem?

1 points

For anyone else having this issue, I was able to fix it (after hours of cursing my computer) by changing /usr/share/webapps/gitlab-shell/bin/gitlab-shell to /usr/share/webapps/gitlab-shell/bin/gitlab-shell-ruby (add ruby at the end) in /etc/passwd.

/usr/share/webapps/gitlab-shell/bin/gitlab-shell can't read a config file for some reason so it tries and fails to fall back to /usr/share/webapps/gitlab-shell/bin/gitlab-shell-ruby. This doesn't really fix the problem with /usr/share/webapps/gitlab-shell/bin/gitlab-shell but rather defaults to the ruby fallback.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.