We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Switching language reboot phone? [answered]

asked 2015-09-10 19:11:13 +0200

hyper_sonic gravatar image

This behavior very confused me. Obviously, It is not important thing, but very strange. Why change locale reboot whole phone?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by raketti
close date 2015-09-10 19:54:54.014608

2 Answers

Sort by » oldest newest most voted
6

answered 2015-09-10 19:21:06 +0200

g7 gravatar image

updated 2015-09-10 19:22:52 +0200

That's pretty normal in Linux distributions and Sailfish is one :)

The locale is sourced at boot from /var/lib/environment/nemo/locale.conf by the init daemon (systemd in this case) and is inherited by every running application. This means that even if you change it, the new one won't be loaded.

So to solve this you have to reboot the phone :)

edit flag offensive delete publish link more

Comments

Why not start GUI process with other environment variable?

hyper_sonic ( 2015-09-10 19:25:45 +0200 )edit
2

Might be done, but personally I think that's a solution in search of a problem.

Even then, the other underlying daemons need to be restarted too, so the system won't switch fully to the new locale. And restarting the UI will close the running applications anyways.

g7 ( 2015-09-10 19:35:20 +0200 )edit
1

I would say the question is answered isn't it? @g7 thanks for explaining the reason, also interesting for me ;)

drummer12 ( 2015-09-10 19:41:51 +0200 )edit
2

answered 2015-09-10 19:17:56 +0200

I think it is because there are many subsystems which need to be restarted oder reinitialiised to show the right language, so it's easier to reboot phone to prevent failures.

edit flag offensive delete publish link more

Comments

Thank you for your explanation, but why not restart only GUI? Wayland of something else small peace of stack.

hyper_sonic ( 2015-09-10 19:22:06 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2015-09-10 19:11:13 +0200

Seen: 145 times

Last updated: Sep 10 '15