this post was submitted on 11 Jul 2023
8 points (100.0% liked)

KDE & Plasma users

2812 readers
1 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE's software runs on GNU/Linux, BSD and other operating systems, including Windows.

founded 4 years ago
MODERATORS
 
top 3 comments
sorted by: hot top controversial new old
[โ€“] riskable@programming.dev 3 points 1 year ago* (last edited 1 year ago)

I'd like to figure this out as well but I must admit the only currency I ever want to convert is USD to Yen and vice versa ๐Ÿ˜

For reference, that's Krunner. So maybe a search for "Krunner currency" stuff might help ๐Ÿคท

[โ€“] MartinR@feddit.de 1 points 1 year ago (1 children)

You can specify your target (e.g. 11 USD in INR should work), however I don't know how to change the defaults or if KRunner is "smart" enough to automatically include INR in those conversions.

[โ€“] MartinR@feddit.de 1 points 1 year ago

I've had a quick look at the code, there doesn't seem to be a way to change the "default" currencies, they are hardcoded. See https://invent.kde.org/frameworks/kunitconversion/-/blob/master/src/currency.cpp and search for "addCommonUnit" and "addDefaultUnit".

load more comments
view more: next โ€บ