You are not logged in.
Pages: 1
I thought it might not hurt to have a thread here to post changes, additions etc which might be of interest to BL developers, to save them from having to watch multiple threads all the time. I'll post changes to packages here, but other devs feel free to post other stuff you think we (and users) should be aware of.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
bunsen-common recent added functions
There is now a new file /usr/lib/bunsen/bunsen-common/yad-includes which lets you simplify the code for simple yad popups in scripts. Some variables yad_common_args and yad_popup_args are set and functions yad_question yad_info and yad_error are available. See the comments in the file for more info. You can include this file the same way as bl-include.cfg, something like:
BL_COMMON_LIBDIR='/usr/lib/bunsen/bunsen-common'
if ! . "$BL_COMMON_LIBDIR/yad-includes" 2> /dev/null; then
echo $"Error: Failed to locate yad-includes in $BL_COMMON_LIBDIR" >&2
exit 1
fi
or if you wanted both:
for i in bl-include.cfg yad-includes
do
if ! . "$BL_COMMON_LIBDIR/$i" 2> /dev/null; then
echo $"Error: Failed to locate $i in $BL_COMMON_LIBDIR" >&2
exit 1
fi
done
There are also some new package handling functions in bl-include.cfg
Nothing all that fancy, but see allInstalled checkVersion and checkOrigin (They are now used in bl-welcome.)
Of course users can source these files the same way in their own scripts.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Great idea for a stickied post... Serves as a "running configuration" to the distro. Referencing github for the changelog can get messy at times. Are you going to go back and post changes that you've made in the past?
Last edited by Horizon_Brave (2016-03-15 14:24:34)
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
... Are you going to go back and post changes that you've made in the past?
I hope not - he won't have time for doing anything else!
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
So https://bunsenlabs.org/gitlog.html is not good enough?
Offline
Horizon_Brave wrote:... Are you going to go back and post changes that you've made in the past?
I hope not - he won't have time for doing anything else!
Sounds like the life of a true programmer to me!
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
So https://bunsenlabs.org/gitlog.html is not good enough?
Just had a look at that, and I'd say: no it's too cluttered, being auto-generated the important/usefull stuff is buried in detail.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
We can now destroy, or we can cherish.
The choice... is ours.
I don't care what you do at home. Would you care to explain?
Offline
Forgot to mention, in bl-include.cfg there's also now a function declareDependencies which will check any commands you give it, and exit with a message if any are missing from the user's system. If you're already using bl-include.cfg in a script you can add a check for any non-standard commands your script uses, like:
declareDependencies curl xclip
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Sir Attenborough wrote:We can now destroy, or we can cherish.
The choice... is ours.
Hmm. A great quote, but not particularly relevant to this thread. Cross-post, I think.
My apologies.
I don't care what you do at home. Would you care to explain?
Offline
From here.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
twoion wrote:So https://bunsenlabs.org/gitlog.html is not good enough?
Just had a look at that, and I'd say: no it's too cluttered, being auto-generated the important/usefull stuff is buried in detail.
I might have sounded a bit too dismissive there: it's also a handy reference, but I was thinking of this thread as a bit more curated...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Pages: 1