ferlanero
|
2017-08-10
, 00:30
|
Posts: 105 |
Thanked: 205 times |
Joined on Dec 2015
@ Spain
|
#331
|
The Following 5 Users Say Thank You to ferlanero For This Useful Post: | ||
|
2017-08-10
, 00:51
|
|
Posts: 137 |
Thanked: 392 times |
Joined on Mar 2013
@ Guate
|
#332
|
The Following 3 Users Say Thank You to karlos devel For This Useful Post: | ||
|
2017-08-15
, 20:21
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#333
|
mimic -voice awb -ssml -t 'Some <phoneme ph="k ae p n">Capn</phoneme> wheel' -o /tmp/out.wav && gst-launch-1.0 -q filesrc location=/tmp/out.wav ! wavparse ! pulsesink
The Following 7 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-08-15
, 20:36
|
Posts: 248 |
Thanked: 1,142 times |
Joined on Dec 2014
@ Earth
|
#334
|
After that I will continue the development according to suggestions and some ideas that I have. Right now, it has been suggested to allow using the server as a proper daemon.
The Following 5 Users Say Thank You to DrYak For This Useful Post: | ||
|
2017-08-16
, 11:08
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#335
|
The best way to be compatible with the official Jolla shop ("no daemon allowed" rule) and end-users desire (background daemon), while avoiding to have 2 completely different codepaths, would be :
- always run the server in a separate process
- (which also means : design some inter-process communication. DBUS ? simple webservice ? protocole buffers ?)
- give the ability to start only that process ("OSMScout --daemon" or something)
- for the version available on openrepos.net :
pack a systemd ".service" file that only start the daemon in background
- for the version avaiable on the shop :
don't pack that file.
When UI starts, it checks (see the IPC mentionned above) if there's a daemon process answering.
If not, it launches the daemon as a child process / as just another thread of the main UI task.
On the official version it means that the service will only be available while the UI is running (even if it uses a weird IPC instead of directly calling functions).
On the openrepos version, people have the possibility to launch the daemon in background at boot ("systemctl enable OSMscout.service") and only launch the UI to monitor daemon activity.
The Following 6 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-08-17
, 17:46
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#336
|
The Following 10 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-08-21
, 08:17
|
|
Posts: 270 |
Thanked: 610 times |
Joined on Nov 2007
@ Leipzig/Germany
|
#337
|
The Following 7 Users Say Thank You to seiichiro0185 For This Useful Post: | ||
|
2017-08-21
, 08:48
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#338
|
Another idea for running the server in the background would be to use Systemd Socket Activation, this way the Server would autostart if it is needed (=if a Request comes in), and could stop after a certain time of idle.
This way it would not be neccessary to waste resources if nothing is using the server, but activation would be transparent to any client app.
This would of corse imply that some proper IPC Mechanism is in place, because I don't think the "stop/start when GUI is launched" would work too well with that
The Following 7 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-08-22
, 09:47
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#339
|
The Following 8 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-08-31
, 19:53
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#340
|
The Following 15 Users Say Thank You to rinigus For This Useful Post: | ||
Tags |
geocoder, linux, offline maps, router, sailfish os, tiles |
|