Bug 469802 - not possible to add abbreviations from GUI
Summary: not possible to add abbreviations from GUI
Status: RESOLVED DUPLICATE of bug 342910
Alias: None
Product: kalzium
Classification: Applications
Component: Calculator (show other bugs)
Version: 22.08.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 11:54 UTC by Petras
Modified: 2023-05-15 12:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petras 2023-05-15 11:54:30 UTC
SUMMARY
***
It would be nice if adding user defined abbreviations for compounds would work from GUI.
I see that default path where this is saved is under `/usr/share/libkdeedu/data/symbols2.csv` - most likely cause of problem  is as user has no write rights at such path.
***

I like the calculator from Kalzium a lot and use it sporadically at work (I am analytical scientist). I use chemical calculator sporadically to check theoretical composition of end-member minerals. It is in general one of these cool apps, which could boost the reach out and showcase visitors of our lab that KDE Neon is really nice everyday OS and comes packed with apps in particularly useful to  scientists.
Typing full formulas is not always fun, thus I thought maybe I could add abbreviations (Aliases), but that does not look to work.

STEPS TO REPRODUCE
1. I.e. I want to add Albite as `Ab` alias to NaAlSi3O8 formula.
2. in Aliases tab I enter `Ab`  for "Short-form" and `NaAlSi3O8` for "Full-form" text field
3. click "Add Alias" button.

OBSERVED RESULT
1. under "Alias" GUI block I get text line "Unable to find the user defined alias file./usr/share/libkdeedu/data/symbols2.csv"
2. If I edit symbols2.csv at mentioned path with `sudo` privilage and add the wished entry, it then appears in GUI, thus the complain in GUI after clicking "Add Alias" button looks to provide misinformation.

EXPECTED RESULT
Clicking "Add Alias" should add the alias to list

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE neon 5.26
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
While fixing adding the aliases one-by-one from GUI would be good, I think software would benefit if adding aliases massively would benefit. I.e. I would like to add more than few thousand entries of known mineral formulas and its abbreviations as aliases.
Comment 1 Petras 2023-05-15 12:00:40 UTC
looks that it was reported before in https://bugs.kde.org/show_bug.cgi?id=342910

*** This bug has been marked as a duplicate of bug 342910 ***