-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(#37) feature: selecting a sensible terminal, configurable terminal command, and notifying when we can't open it #40
Conversation
…, and notifying when we can't open it
938b3e0
to
86af102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested by applying onto 0.1.0. Terminal command works now, as does overriding it with a command in the config. Haven't checked the notifying part.
Just one suggestion about install location, now that the GNUInstallDirs PR was merged.
Co-authored-by: Cosima Neidahl <opna2608@protonmail.com>
I'm just using |
src/miracle_config.cpp
Outdated
char buffer[512]; | ||
|
||
snprintf( | ||
buffer, | ||
sizeof buffer, | ||
"command -v %s > /dev/null 2>&1", | ||
name | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know if it would make sense to ensure that name
length doesn't exceed however much space is left in buffer
after everything else, otherwise a long name
could cut off parts (or the entirety) of > /dev/null 2>&1
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me!
…minal command, and notifying when we can't open it (mattkae#40) * feature: selecting a sensible terminal, configurable terminal command, and notifying when we can't open it * bugfix: using CMAKE_INSTALL_BINDIR for miracle-wm-sensible-terminal Co-authored-by: Cosima Neidahl <opna2608@protonmail.com> * enhancement: update program_exists check wihout bounds check --------- Co-authored-by: Cosima Neidahl <opna2608@protonmail.com>
What's new?
sudo make install
). The sensible terminal command needs to be found in your pathterminal: MY_COMMAND_STRING
key in the config filelibnotify