This app for auto start Situations app (from jolla store) in background after reboot or lipstick restart.
Requires:
harbour-situations2application - should be installed.
python, dbus-python - to see notifications on the event screen.
lipstick-qt5-tools - to overwrite existing notification instead to collect them in the thread
Just activate developer mode before installation and dependencies packages should be installed automatically.
v0.1-17
- Small changes in the script.
- Compatible with v2.1.1.12.
v0.1-15
* Fix for ownership of some files. Now should work for all users. Added Tablet version.
v0.1-14
* Small changes in .spec file, changes for permission.
v0.1-13
* Small changes in .spec file
v0.1-12
* Small changes in .spec file
v0.1-11
* Added checking command if folder "user-session.target.wants" is existing. Now should work for all users.
v0.1-10
* Fixed small mistake in .spec file
v0.1-9
* App completely changed.
* Notification text changed a little bit.
* Will start service file after installation.
* Press on icon for stop/start service. If you will stop service, it will stop Situations app. Just reopen Situations app.
* Work also after reboot and lipstick restart
* Adaptation for 2.0.0.10.
v0.1-7
* Fix of notification icon. Adaptation for 1.1.9.28.
v0.1-6
* Fix of notification icon. Adaptation for 1.1.6.27.
v0.1-5
* Fix of small bug
* Added creating log file when Situation stuck over 90%, you will find it in /home/nemo/situationreboot.log.
v0.1-4
* Added auto-kill and restart of server if it stuck on over 90%, you will get notification about this. Thanks to Moth for Icons. .
v0.1-3
* Icon change to cool one, thanks to Moth.
v0.1-2
* Automatically enabled after installation.
Donation are welcome :)
Attachment | Size | Date |
---|---|---|
situationreboot-0.1-15.armv7hl.rpm | 39.5 KB | 27/10/2015 - 21:40 |
situationreboot-0.1-15.i486.rpm | 39.7 KB | 21/03/2016 - 05:34 |
situationreboot-0.1-17.i486.rpm | 39.54 KB | 02/06/2017 - 18:38 |
situationreboot-0.1-17.armv7hl.rpm | 40.44 KB | 02/06/2017 - 18:38 |
- Small changes in the script.
- Compatible with v2.1.1.12
Comments
Moth
Tue, 2015/10/27 - 16:19
Permalink
Clean installation is possible again with v0.1-14.
But the service never gets enabled. I guess that's still the main problem with 1.1.9.28
Schturman
Tue, 2015/10/27 - 16:59
Permalink
No, wait... Please show me outputs of this commands:
stat -c "%a %n" /home/nemo/.config/systemd/user/user-session.target.wants/*
stat -c "%a %n" /home/nemo/.config/systemd/user
stat -c "%a %n" /home/nemo/.config/systemd
ls -l /home/nemo/.config/systemd
ls -l /home/nemo/.config/systemd/user
ls -l /home/nemo/.config/systemd/user/user-session.target.wants
Moth
Tue, 2015/10/27 - 18:01
Permalink
Interesting result: There's no folder "user-session.target.wants"
Schturman
Tue, 2015/10/27 - 18:47
Permalink
Ok, now I understand why it not work for you...
On my device folder systemd and all subfolders is nemo:nemo, on your device it's root:root. This is a reason that .spec file can't create "user-session.target.wants" file.
Now please show me this 3 outputs, to know which app created this folder and service:
ls -l /home/nemo/.config|grep systemd
stat -c "%a %n" /home/nemo/.config/systemd/user/post-user-session.target.wants
stat -c "%a %n" /home/nemo/.config/systemd/user/post-user-session.target.wants/*
Moth
Tue, 2015/10/27 - 18:47
Permalink
And the winner is...
Schturman
Tue, 2015/10/27 - 18:49
Permalink
Please show me also this output:
ls -l /home/nemo/.config|grep systemd
Moth
Tue, 2015/10/27 - 19:07
Permalink
Yep. :-)
Schturman
Tue, 2015/10/27 - 19:37
Permalink
Ok, now you have a few options....
1. If you want to try and solve it, try this command as root:
chown nemo:nemo /home/nemo/.config/systemd
chown nemo:nemo /home/nemo/.config/systemd/user
Do reboot and try if Mitakuulu continue to work like before. If not, you can restore it to what it was:
chown root:root /home/nemo/.config/systemd
chown root:root /home/nemo/.config/systemd/user
In this case you can't use situationreboot (for now at least).
2. If all is ok with Mitakuulu after changing the ownership, you can continue (as root):
su -l nemo -c "mkdir -p /home/nemo/.config/systemd/user/user-session.target.wants"
chmod 0755 /home/nemo/.config/systemd/user/user-session.target.wants
3. Now try to press on the icon of Situationreboot for On/Off to see if it work or not and check:
systemctl-user status situationreboot.service
pgrep -f situations2application
Maybe you need reboot once, to see the result...
Moth
Tue, 2015/10/27 - 20:34
Permalink
What a journey. Both services work like a charm now! :-D
Thank you so much for your effort! Sometimes things aren't that obvious, right?
Keep it up!
Schturman
Tue, 2015/10/27 - 21:11
Permalink
Very Good! and now, can you do for me the last test, please ?
1. Press on the icon of Situationreboot to stop it.
2. Run as root:
/bin/rm -rf /home/nemo/.config/systemd/user/user-session.target.wants
3. Restore ownership as root:
chown root:root /home/nemo/.config/systemd
chown root:root /home/nemo/.config/systemd/user
4. Reboot your phone and check Mitakuulu again if all work.
5. Run as root:
mkdir -p /home/nemo/.config/systemd/user/user-session.target.wants
chown nemo:nemo /home/nemo/.config/systemd/user/user-session.target.wants
chmod 0755 /home/nemo/.config/systemd/user/user-session.target.wants
6. Now try to press on the icon of Situationreboot for On/Off to see if it work or not and check:
systemctl-user status situationreboot.service
pgrep -f situations2application
Maybe you need reboot once, to see the currect result...
Moth
Tue, 2015/10/27 - 21:22
Permalink
Yes, both services are still enabled after this measure. :-)
Schturman
Tue, 2015/10/27 - 21:31
Permalink
Very good ! Thank you very much for your help to understand this problem ! :)
You can leave it as is and In a few minutes I will upload fixed version.
Thank you!
Moth
Tue, 2015/10/27 - 22:01
Permalink
Always a pleasure. I did a clean install with v0.1-15 and everything's still working fine. :-)
Thanks again!
Schturman
Tue, 2015/10/27 - 22:24
Permalink
Cool! But if you wanted a clean install, you should uninstall previous version and also remove folder "user-session.target.wants":
/bin/rm -rf /home/nemo/.config/systemd/user/user-session.target.wants
Installation after this, you can call Clean install ;)
Moth
Tue, 2015/10/27 - 22:54
Permalink
Oh yes, that's exactly what I've done. Successful as mentioned above! :-D
Schturman
Tue, 2015/10/27 - 23:19
Permalink
Very Good! Thank you very much !
Schturman
Tue, 2015/10/27 - 11:41
Permalink
Ok, thanks for report.. Anymore I don't have any idea what else I can do. Sorry... Maybe it somehow related to jolla version 2.0.0.10. When you will update your phone, please try again.
Schturman
Mon, 2015/10/26 - 21:39
Permalink
Ok... Sorry man... I really don't know what else can we do...
Don't know why it not work on your device...
Schturman
Sun, 2015/10/25 - 12:01
Permalink
Ahhh, I tested only on the 2.0.0.10.
eson
Sat, 2015/10/24 - 08:40
Permalink
Will not install on my system. Error message on screen shot.
Schturman
Sat, 2015/10/24 - 13:13
Permalink
Activate dev mode first, or install this package manually before my app.
Schturman
Thu, 2015/10/15 - 14:26
Permalink
Please look in to this thread: http://talk.maemo.org/showpost.php?p=1485379&postcount=152
And also ask from author to create a correct auto-start service file. ;)
rob_k
Sat, 2015/01/17 - 16:12
Permalink
Since I installed Situtations and this Auto-start app yesterday, I experienced several freezes and auto-reboots. How do I uninstall the Auto-start for Situations app? It is not visible as an option in Warehouse.
Thanks for all the work, and I will go back to Auto-profile changer for now. :)
(Edit, I see: pkcon remove situationreboot, but it was not installed.)
Schturman
Sat, 2015/01/17 - 16:50
Permalink
1. from terminal as ROOT:
pkcon remove situationreboot
2. Long press on the icon and press on "x". Wait untill icon will disappear.
Moth
Fri, 2015/01/02 - 22:10
Permalink
kind regards ;)
Schturman
Sun, 2015/01/04 - 20:39
Permalink
Moth, can you create another one icon please ?
I need just white icon 64x64px (square with arrows on transparent background).
I work on update that can kill situation server when it stuck on over 90% CPU and restart server again. I need this icon for notifications.
Thanks
Moth
Mon, 2015/01/05 - 02:26
Permalink
Sure, can you work with the basic draft? Or do we need more? :-D
https://db.tt/JaWKHHjx
Regards
Schturman
Mon, 2015/01/05 - 02:50
Permalink
never mind, it looks good, I just added ".png" to the end of file and now I see it :)
thanks.
Moth
Mon, 2015/01/05 - 03:03
Permalink
The file got an update. Try the link above again! ;)
Schturman
Mon, 2015/01/05 - 03:05
Permalink
good, thanks! can you add "✔" in the middle, like in first icon ?
Pages