Re: knowing if a module is restricted

2017-11-29 Thread Stéphane Ancelot
I will try it. My aim is to improve systemsettings5 view, when modules have been restricted. because, altough modules are restricted and not available to user, there is always a category icon, and when clicking in it , you open a blank view. And each icon provide the list of restricted items.

Re: knowing if a module is restricted

2017-11-29 Thread Kai Uwe Broulik
Hi, KAuthorized::authorizeControlModule Pass it the full name of the desktop file (e.g. kcm_foo.desktop). There's also a function that filters a list of modules to check multiple at once. Cheers Kai Uwe

knowing if a module is restricted

2017-11-29 Thread Stéphane Ancelot
 Hi, which function does permit to know if a module has been restricted in kdeglobals ? Regards, S.Ancelot