You are not logged in.

#1 2016-09-26 07:24:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

[DONE] package notify-broadcast?

The notify-broadcast script is quite small (~1kB) and I think it might be handy to have available in BunsenLabs for devs or users who are writing root-owned scripts to send messages to users on the system. (Originally I wrote it so the 32bit flash update script I was working on could inform users when the plugin had been upgraded, or if it hit an error.)

At first I thought of putting it in bunsen-common, as it's so small, but it didn't seem quite that essential to BL. OTOH, if it went in bunsen-utilities then any package which wanted to use it would have to pull in the whole 34kB of b-u. (not all that much, agreed)

After dismissing the idea of making a whole package just for that little script, I thought of creating a new package called bunsen-sysutils for utilities mainly expected to be run as root, by system maintainers. (It would still only have this one script in at first though.)

Another question -  all our executable names start with bl- so the script would have to be renamed bl-notify-broadcast to fit in. I do rather like notify-broadcast by analogy with notify-send though...

Any thoughts?

Last edited by johnraff (2016-10-19 03:48:14)


...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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#2 2016-09-26 17:09:48

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [DONE] package notify-broadcast?

As someone that doesn't write "root-owned-scripts" or user owned scripts I'm not qualified to answer.

In fact I don't even know what this does - being a 64bit user I didn't follow the 32bit flash update script.  Sorry.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2016-09-26 17:38:34

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [DONE] package notify-broadcast?

johnraff wrote:

...
Another question -  all our executable names start with bl- so the script would have to be renamed bl-notify-broadcast to fit in. I do rather like notify-broadcast by analogy with notify-send though...

Any thoughts?

I guess it should really be  bl-notify-broadcast, for consistency hmm


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

#4 2016-09-26 18:27:24

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [DONE] package notify-broadcast?

I think it should be added to bunsen-utilities, I don't think many will notice an extra 34KiB.

Offline

#5 2016-09-26 23:28:36

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 1,146

Re: [DONE] package notify-broadcast?

I think even fewer will actually care about an extra 34K if they're wanting to use it. 34M and maybe there'd be a concern about pulling "the whole XX of b-u", maybe...  Lean as an ideal is good, but there comes a point where the last few KiB isn't worth the extra effort.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#6 2016-09-27 04:01:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: [DONE] package notify-broadcast?

About "the extra 34kB": it's not really about a user wanting to use this script directly, so much as some other package needing to pull it in as a dependency. But I still agree it's not all that much.

OTOH bunsen-utilities itself has some dependencies that would be brought in too - if they weren't on the system already (most of them probably would be though):

Package: bunsen-utilities
Architecture: all
Depends: bunsen-common, python2.7, python-gtk2, python-xlib, upower, yad, wmctrl, xdotool (>=1:2.20110530.1-3), python-dbus
Recommends: gmrun, light-locker, openbox, nitrogen | feh, scrot

OK drop it in bunsen-utilities, name the executable bl-notify-broadcast, and packages that want to use it can make bunsen-utilities a recommend instead of a hard dependency - it's only a frill, after all.

Sounds good?


...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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#7 2016-09-27 06:15:11

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [DONE] package notify-broadcast?

Perfect smile

Offline

#8 2016-09-29 08:41:53

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: [DONE] package notify-broadcast?

bunsen-utilities 8.7.1-1 on GitHub now holds bl-notify-broadcast and bl-notify-failure@.service.

This has been pushed to "master" so it will be ready for any deuterium packages that might want to use it.


...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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB