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

Make application start at boot

asked 2019-04-05 21:25:28 +0300

HAF-MED gravatar image

Hi all,

in [release notes] 3.0.2 Oulanka Section : Device Management (MDM) [Corporate API] App auto start API: Allow pre-starting apps on boot

Please Who can I make my application start automatically in boot of device?

edit retag flag offensive close delete

4 Answers

Sort by » oldest newest most voted
3

answered 2019-04-05 22:31:37 +0300

pawel gravatar image

workaround : https://openrepos.net/content/schturman/apps-after-boot

edit flag offensive delete publish link more
2

answered 2019-04-05 23:25:19 +0300

tortoisedoc gravatar image

You can also use a systemd script

edit flag offensive delete publish link more

Comments

Who? and after that can my application be published in Harbour jolla?

HAF-MED ( 2019-04-05 23:30:23 +0300 )edit

Nope. System-specific systemd Script aint good for harbour, unfortunately; as the app won't have root access, and cant install stuff from the pre-inst.

It would indeed be a pity if SFOS wouldn't apply the systemd protocol to the spot, as defined here, tho

https://wiki.archlinux.org/index.php/Systemd/User#How_it_works maybe it's worth a shot.

tortoisedoc ( 2019-04-05 23:45:45 +0300 )edit

Systemd user units work fine, I'm using one to start amazfish after bootup/home restart on my phone...

There might be a harbour rule that forbids such actions though, if you want to publish on harbour, you should check before hand...

If there is: there's always openrepos... (almost all my installed apps are from there)

lethe ( 2019-04-06 00:38:44 +0300 )edit

@lethe even for user-specific files? That'd be quite limiting. AFAIK the harbour validation includes only the executables uploaded (and the libraries linked to from it)

tortoisedoc ( 2019-04-06 10:29:10 +0300 )edit
2

answered 2019-04-05 23:57:00 +0300

Maus gravatar image

In the release notes you quote, MDM refers to Mobile Device Management. This feature is not designed to fulfill your autostart needs and is most likely never visible or accessible to most of us (end users). Instead, you should create a systemd unit file to autostart an app.

edit flag offensive delete publish link more
2

answered 2019-04-06 09:30:33 +0300

hsjpekka gravatar image

Is autostart applications what you are looking for?

In short: create shell-script autostart-apps in /home/nemo/.config/systemd/scripts/, file autostart-apps.service in ../user/, and tell systemctl to run the script.

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

Question tools

Follow
3 followers

Stats

Asked: 2019-04-05 21:25:28 +0300

Seen: 377 times

Last updated: Apr 06 '19