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

reboot keyboard

asked 2015-02-08 11:27:45 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2015-02-08 11:29:17 +0300

tzafrir gravatar image

I'm trying to play with the UI. I figure I'll try to write my own keyboard layout. What do I need to do to apply the modified layout without reboot?

I looked at a package that includes a keyboard layout:

$ rpm -qp --scripts hebrewvkbnew-2ar-2lang-0.8-1.armv7hl.rpm
postinstall scriptlet (using /bin/sh):
if [ $1 = 1 ]; then
    // Do stuff specific for first install
echo "It's first time install"
fc-cache -f
killall maliit-server
killall jolla-messages
killall jolla-email
killall jolla-notes
killall jolla-clock
else
if [ $1 = 2 ]; then
    // Do stuff specific to upgrades
killall maliit-server
fi
fi
postuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
rm -rf /usr/share/maliit/plugins/com/jolla/custom-he
killall maliit-server
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

Is this what I should do? Kill maliit-server (it will restart itself?)

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
2

answered 2015-02-08 12:35:42 +0300

TemeV gravatar image

You just need to restart maliit. As a user:

systemctl --user restart maliit-server.service

or as a root you can just kill maliit

killall maliit-server

You can find more instructions and other peoples layouts in this talk.maemo.org thread http://talk.maemo.org/showthread.php?t=91917

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2015-02-08 11:27:45 +0300

Seen: 432 times

Last updated: Feb 08 '15