On Sat, 21 May 2016 11:11:01 +0100 Mick <[email protected]> said:
> 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? all display managers support ~/.xinitrc and/or ~/.xsession that i have ever seen. it's been a standard since the 1980's. edit one of them. chmod a+x it. ln -s the other name to the one u edited just in case and ensue the display manager is set up to use whatever custom login script you have instead of the xsession .desktop file. fyi in desktop files TryExec is not what is executed. it's what is used to figure out if the executable exists. the Exec line is what is executed. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ 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
