trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: August 2020

Re: [trinity-devel] Re: ksmserver

From: "Michele Calgaro via trinity-devel" <trinity-devel@...>
Date: Sat, 1 Aug 2020 15:07:15 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

> Michele, thank you - this was the ultimate programmatic solution. For the public (as you answered in private, or
> may be I did and it did not get to the list) the solution suggested (and working) was
> TDEApplication::disableSessionManagement()

Hi Emanoil,
I didn't mean to answer privately... probably I pressed the wrong button.

TDEApplication::disableSessionManagement() may fix the issue, but you need to remember that in TDE different people
may have different needs, so we need a way to let the users choose whether to launch the app at startup or not. If we
just disable it, it is not the best solution.

We use TDEApplication::disableSessionManagement() when we don't want the application to be managed by the ksmserver,
but in that case we provide a different way to control whether the application should start automatically at start up
or not. This is done in two places:
1) the application has an option for autostart
2) there is an autostart script that look at that option and decide whether to autostart or not.
You can look at TDEPowersave for an example and the relative script in /opt/trinity/share/autostart.

Just disabling session management without providing an option to the user is an incomplete solution IMO.

Cheers
  Michele
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEjhl1z5vbYB3YbFTiKnW3yore1c8FAl8lBowACgkQKnW3yore
1c/CvxAAgfR3ma41edGeMOxuppGbYb95FT9BXp27d/VnlJh8XQp2MaMpJYK6heOQ
DnyMc7TM1k4bRMh9H+vA0I50KCE1mCFX4prwXv0BRtcJwoyLcjWrTIhXKb+GcoZK
bPN/1atDCrpIZsvOWEtlkfT9ZqAN4BZiAPtXccKIRg4Mkoln/V3PpmERWccZAz0+
3bj5OOBz+atv4vgwvbPK5ouUxHKUHirsA39KxnysUHfMgMkeB050YxSAY4oFKtfL
CIOP/pMY1rQ9lz+nSrTxqBD6xqXgX6liA6v266rJCK1yWrvEkqX//8xfuKMm8d0r
UR595XvJLg0ibSC5KjBm63vHtdHr6np2r8LessvRY5XgsQtkvc7J/GJiezv2fmTy
bhJpsscz+bHE+291+QCB7xAebL8CFWmCl6oILUmnttnN4lJeWb6OAvIr1stn6ehS
ZE56qFEjhECVeaCZG0ssj1+lotY0Z1IPXWwQO/kULDb47AWmQEbrDQQ3cFTJjsq3
0RJ8ON6BDjPE9HQMve1vA9t8CaI/MCkZVm5seQsnJ1TNPl7zoHDsgfve10KRKFV4
ht7OijzMI20lII+jXYqU77f5CQFobAvDrzY1scmpTBIsSTOt97f8B+eVpStucIrM
/1JWmXgYQZWz403U5frNTcgmf75gFJymDql+prQf4rS5uGs0z/k=
=LwYK
-----END PGP SIGNATURE-----