Comments (2)
Options are parsed with the correct US locale, but written to the config file using the system locale.
In the de_DE.UTF-8 locale, all double values are written with a comma instead of a period as decimal separator. For some reason, double options can be changed during a session, but wayfire cannot read the option on next start and they will be reset to default.
It looks like a simple way to fix this would be to set the correct locale in all
option_type::to_string
methods.
Sounds like a good solution to me. We should only need this for doubles, and then we should make other option types rely on the double parsing functions (if they don't already), so that we don't have to repeat the fix.
from wf-config.
This is not a problem anymore for me, because now wcm ignores the system locale for some reason (I rebuilt it in the meantime).
Previously it used commas as decimal separator in the UI (e.g. "0,100") but now it shows "0.100". It saves the config file with the same format as in the UI, which is now valid.
LANG=de_DE.UTF-8 wcm
or LC_ALL=de_DE.UTF-8 wcm
doesn't change the number format the UI uses for me anymore. Other Gtk apps still use the , format.
Has anything been changed about this, I didn't see any relevant commits?
from wf-config.
Related Issues (20)
- Wayfire crashes if plugins option is not defined in core section of config file HOT 6
- Make pulse dependency optional HOT 1
- GCC 10 regression? HOT 3
- Keep track of breaking ABI changes by SONAME HOT 1
- Options are not removed from after being removed from config file HOT 3
- Support lists in /etc/wayfire/defaults.ini HOT 4
- Add support for free-text sections
- Run-time dependency glm found: NO (tried pkgconfig) HOT 7
- Cube crashes a second after returning to desktop HOT 1
- Cube activation: activation always uses <alt> <ctrl> BTN_LEFT even if changed in config HOT 1
- Fails to build with the new glibc on Fedora Rawhide
- wf-config fails the file-parsing test HOT 1
- test(types_test.cpp.o): Build error in Fedora 35 HOT 6
- changing options resets wayfire scaling HOT 4
- Increase flexibility of compound options. HOT 4
- Write only user modified values to the config file HOT 1
- Add support for custom config formats
- Build fails on devuan ceres. HOT 1
- Keep numeric order of rules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wf-config.