![]() |
2014-01-09
, 20:20
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1552
|
Instead of assuming much will change, I don't suppose you've raised your concerns here?
https://together.jolla.com/questions
Or Nemo bug-tracker, or both. Just a suggestion, I'm not trying to tell you what to do.
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2014-01-09
, 20:24
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1553
|
Hi ajalkane, thanks for answer,
I have wrote a cross thread about it
So I think I've reach my limit with Dbus to be able to write a command to change schedule mode or anything else about mail accounts.
![]() |
2014-01-11
, 15:00
|
Posts: 3 |
Thanked: 2 times |
Joined on Jan 2014
|
#1554
|
Just a guess, perhaps device has not had time to fully exit power saving mode before you try syncing and the sync is not done when in power saving mode? If that is the case you can try to add some delay in the script.
If it works from command-line it should work from ProfileMatic. But you can also debug your scripts for example by writing the output of that dbus-send command to a file and inspecting what it says.
![]() |
2014-01-11
, 15:09
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1555
|
I agree that it should be working as the command line seem to be fully functional.
Furthermore,I have to confess that I have been testing many of the options using the easy easy way, that is, using Profilematic's test button and the checking if I see the sync arrow to appear onscreen. Could this explain the lack of success?
![]() |
2014-01-12
, 12:07
|
Posts: 697 |
Thanked: 137 times |
Joined on Jul 2012
@ Hillerød, DK
|
#1556
|
No, the test button causes same thing to happen as when ProfileMatic's conditions cause the action to trigger - so that's the right way to test if it works with ProfileMatic.
![]() |
2014-01-14
, 01:12
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1557
|
Re this issue I have an old unsolved problem due to test button and custom action content:
Re custom action Network you said action to be:
sh /home/user/scripts/execroot.sh "/sbin/initctl restart xsession/icd2"
which did't work but this from Schturman worked:
sh -c "echo rootme | devel-su -c '/sbin/initctl restart xsession/icd2'"
see: http://talk.maemo.org/showthread.php...14#post1373614
I have same problem where test button don't work with action:
sh /home/user/scripts/execroot.sh /home/user/scripts/restartbme.sh
http://talk.maemo.org/showpost.php?p...&postcount=885
Should this action be changed due to something like above from Schturman?
![]() |
2014-01-15
, 18:09
|
Posts: 3 |
Thanked: 2 times |
Joined on Jan 2014
|
#1558
|
The execroot version should work just the same. If it doesn't, there's probably a bug in the script. I'll double check this when I have time and modify accordingly. Nothing wrong with using Schturman's version, perhaps it's even clearer.
![]() |
2014-01-17
, 01:18
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1559
|
The execroot version should work just the same. If it doesn't, there's probably a bug in the script. I'll double check this when I have time and modify accordingly. Nothing wrong with using Schturman's version, perhaps it's even clearer.
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2014-01-19
, 12:30
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1560
|
#!/bin/sh # executing a shell script given with paramete$ # by peterleinchen, based on MFaroTusino's idea if [ $(id -u) != 0 ]; then echo rootme | devel-su -c "$0 $*" exit $? fi # own shell code from here echo $(whoami) >> /home/user/.out_execAsRoot
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
So I think I've reach my limit with Dbus to be able to write a command to change schedule mode or anything else about mail accounts.
Lorenzo seems to have the same kind of problem with managing mail account via profilematic and its custom action.
Regards,
Nemric.