Skip to content

Conversation

@babanov1403
Copy link

dualsensectl lightbar rainbow enable - enables rainbow mode
dualsensectl lightbar rainbow disable - disables it

meson.build Outdated
[
'-Wl,--exclude-libs=ALL',
'-DDUALSENSECTL_VERSION="@0@"'.format(meson.project_version()),
'-lm',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

meson.build Outdated
meson_version: '>=0.58.0',
default_options: [
'c_std=c11',
'c_std=c23',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason, thank you

@nowrep
Copy link
Owner

nowrep commented Oct 11, 2025

Please remove the build.sh script.

@babanov1403 babanov1403 force-pushed the rainbow branch 2 times, most recently from 0e06671 to efcde9a Compare October 11, 2025 12:13
@egormanga
Copy link
Contributor

I believe this should not belong here. Spawning child processes and managing their lifecycle is not a particularly suitable (or intended) job for this (or any) CLI tool. The currently provided implementation isn't doing a good job at it, either — storing PID in a file implies state-on-disk, which requires handling of reboots, crashes, double starts, TOCTOU races, etc.

Consider using dualsensectl as a library instead, writing a standalone daemon. This way you both shouldn't have to manage the subprocess (there are init systems used exactly for that) or even have one, nor to go back-and-forth trying to upstream that.

My 2 cents.

@egormanga
Copy link
Contributor

FWIW, I think this might make a great place in the OpenRGB project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants