On Saturday 21 May 2016 11:22:08 you wrote:
> On Saturday 21 May 2016 11:11:01 Mick wrote:
> > On Saturday 21 May 2016 17:42:51 you wrote:
> > > On Sat, 21 May 2016 08:04:08 +0100 Mick <[email protected]>
said:
> > > > On Saturday 21 May 2016 13:35:57 you wrote:
> > > > > On Fri, 20 May 2016 23:59:30 +0100 Mick <[email protected]>
> >
> > said:
> > > > > > I run kmail with its akonadi database and noticed that if I shut
> > > > > > down
> > > > > > kmail
> > > > > > and then log out from elightenment, akonadi which does not
> > > > > > shutdown
> > > > > > with
> > > > > > kmail, crashes. Where can I add a shutdown script so that before
> > > > > > enlightenment exits akonadi can shutdown gracefully, wait for a
> > > > > > couple
> > > > > > of
> > > > > > seconds and then enlightenment finally exits?
> > > > >
> > > > > no - no shutdown directory. only start and restart.
> > > > >
> > > > > if you shutdown or logout e will close every window "nicely". if a
> > > > > window
> > > > > refuses to close (and has asked for a delete request and e sent that
> > > > > with no responds for a while) e will complain and let you know.
> > > >
> > > > The thing is akonadi is running as a service between kmail or similar
> > > > PIM
> > > > applications and the back end database server (mysql of postgresql).
> > > > So
> > > > it
> > > > is not a window as such to be shut down. Is there another way I could
> > > > achieve this?
> > >
> > > i was letting you know so you can perhaps change to something that has a
> > > window - it is shut down nicely then. :)
> > >
> > > you could simply use a ~/.xsession or ~/.xinitrc file to launch
> > > enlightenment_start and then after enlightenment_start exits do whatever
> > > you like:
> > >
> > > #!/bin/sh
> > > enlightenment_start
> > > killall whatever-daemon
> > >
> > > :)
> >
> > Thanks Carsten, I am using sddm as a display manager, which I understand
> > uses the contents of /usr/share/xsessions to start enlightenment with.
> > Could I set up in /usr/share/xsessions/enlightenment.desktop something
> > like
> > this?
> >
> > [snip...]
> > Icon=/usr/share/enlightenment/data/images/enlightenment.png
> > TryExec='/usr/bin/enlightenment_start && /usr/bin/akonadictl stop && wait
> > 3' Exec=/usr/bin/enlightenment_start
> >
> > Will this stop akonadi and wait for three seconds before it exits
> > enlightenment?
>
> OK, this seems to be working:
>
> TryExec=/usr/bin/enlightenment_start "&" /usr/bin/akonadictl stop "&" wait 3
Hmm ... upon closer inspection, it doesn't; e.g.
================================================
KCrash: Attempting to start directly
ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with
exit code 1 (Unknown error)
KCrash failed to exec(), errno = 2
KCrash failed to exec(), errno = 2
KCrash failed to exec(), errno = 2
ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with
exit code 253 (Unknown error)
Invalid MIT-MAGIC-COOKIE-1 keyakonadi_imap_resource: cannot connect to X
server :0.0
ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with
exit code 253 (Unknown error)
Invalid MIT-MAGIC-COOKIE-1 keyakonadi_maildispatcher_agent: cannot connect to
X server :0.0
ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with
exit code 1 (Unknown error)
"/usr/bin/akonadi_imap_resource" crashed too often and will not be restarted!
akonadi_birthdays_resource(17434)/kdeui (kdelibs): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with
exit code 253 (Unknown error)
KCrash: Application 'akonadi_birthdays_resource' crashing...
KCrash: Attempting to start from kdeinit
I think the PIM client closes and akonadi is trying to re-establish a
connection to it, but various sockets are no longer there. It tries a few
times and then it crashes. I hope this won't lead to a database corruption.
--
Regards,
Mick
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users