-
Notifications
You must be signed in to change notification settings - Fork 272
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
Improvements to OpenVarioMenu #1214
base: master
Are you sure you want to change the base?
Conversation
10288ad
to
cbdc07d
Compare
|
Did not observe this during make build with gcc, but could re-produce with clang. Fixed. |
cbdc07d
to
854cf71
Compare
More compiler complaints:
|
src/OV/System.cpp
Outdated
void | ||
OpenvarioSetLanguage(const char* lang) | ||
{ | ||
Run("localectl", "set-locale", lang); |
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.
Did you test this? Does this work?
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.
No, not tested yet. I should've marked that commit as WIP as well. Was just an idea as a first shot without further looking into it. I can keep such things out of this Draft PR if it wastes your time looking at it.
src/OV/System.cpp
Outdated
OpenvarioSetLanguage(const char* lang) | ||
{ | ||
Run("localectl", "set-locale", lang); | ||
Run("export", fmt::format("LANG={}", lang).c_str()); |
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.
This has zero effect, even if this function call were able to invoke a shell built-in (which it does not). So you spawn a shell, use export
to set an environment variable in this process, and then the process exits. The environment change is gone.
May I ask what your compile command is? Also you merged the rotation commit as is, right? I need to issue a fixup commit to have this variable initialized properly. |
The screen was rotated the wrong way after restart for both portrait orientations.
854cf71
to
ef1a447
Compare
/*the x-menu is waiting a second to solve timing problem with display rotation */ | ||
std::this_thread::sleep_for(std::chrono::seconds(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.
This sounds really horrible, and the justification for such a horrible kludge must be documented really well. Just saying "timing problem" isn't enough.
Brief summary of the changes
Work-in-progress implementation update for the OpenVarioMenu.
Related issues and discussions
#1107
#1207
Openvario/meta-openvario#199