sailfish-keyboard / sailfishos-presage-predictor

Presage based input predictor for the Sailfish OS
https://openrepos.net/content/sailfishkeyboard/maliit-plugin-presage
GNU General Public License v3.0
7 stars 4 forks source link

Test whether plugin requires manual restart after install #22

Closed rinigus closed 6 years ago

rinigus commented 6 years ago

Writing it here to ensure that we'll not forget it later.

Test whether plugin is able to restart maliit service correctly.

Based on the following comment of @ljo:

@rinigus The testing is on here too since Friday evening. It looks like it required an explicit pkill maliit-server; MALIIT_DEBUG=enabled maliit-server to create the user lang files in ~/.local/share/presage/ with just rebooting it was not working (to get any suggestions, and the local lang files were absent). BTW the path for user local settings is still ~/.presage/presage.xml Thanks for this great work. I look forward to testing the async PR on top of this PR.

rinigus commented 6 years ago

I did fresh install and observed :

I think it's not ours but keyboard bug. Probably cannot fix and have to report to Jolla.

Suggesting to close it here

rinigus commented 6 years ago

Actually, turned out that I had still old layout keyboards around. This made Maliit a bit confused. After proper cleaning

rm -rf .local/shared/presage
rm -rf .presage (not needed in my case)
devel-su
  rm /usr/share/maliit/plugins/com/jolla/layouts/*presage*

and reboot, for a good measure, all worked as expected. After install, maliit restarted. Then selected keyboards worked and local n-gram databases were created together with .local/shared/presage folder. I suspect that SQLite is creating that folder since I cannot find any place where Presage or plugin would do it.

Closing since its fixed by the cleaning from the old install