[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Writing to plasma-desktop-appletsrc with init scripts.
From:       Chris Topel <ctopel () advocap ! org>
Date:       2016-03-31 21:17:24
Message-ID: 56FD93E4.90201 () advocap ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey all,

I'm having a bit of an issue trying to make something work in my 
environment.

Basically, I want widgets to be disabled by default. But if a user 
chooses to do so, they can unlock the widgets and make their changes. 
Then, on logout, the widget will automatically be locked again for them 
so they don't accidentally remove it the next day.

So to do that I'd like to use init scripts 
(/usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js) to pass 
something directly into plasma-desktop-appletsrc when a user first logs in.

Specifically, I want to add this to the bottom of the file:

    [General]
    immutability[$i]=2

This will lock widgets by default but will allow the users to unlock it 
(immutability=1) temporarily to add/move widgets. Then the next time 
they log back in it will be locked (immutability=2) again for them.

So, is there some way I can easily easily set immutability[$i]=2 under 
the [General] section of plasma-desktop-appletsrc?

Thanks in advance!

[Attachment #5 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hey all, <br>
    <br>
    I'm having a bit of an issue trying to make something work in my
    environment. <br>
    <br>
    Basically, I want widgets to be disabled by default. But if a user
    chooses to do so, they can unlock the widgets and make their
    changes. Then, on logout, the widget will automatically be locked
    again for them so they don't accidentally remove it the next day. <br>
    <br>
    So to do that I'd like to use init scripts
    (/usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js) to
    pass something directly into plasma-desktop-appletsrc when a user
    first logs in. <br>
    <br>
    Specifically, I want to add this to the bottom of the file:<br>
    <blockquote>[General]<br>
      immutability[$i]=2<br>
    </blockquote>
    This will lock widgets by default but will allow the users to unlock
    it (immutability=1) temporarily to add/move widgets. Then the next
    time they log back in it will be locked (immutability=2) again for
    them. <br>
    <br>
    So, is there some way I can easily easily set immutability[$i]=2
    under the [General] section of plasma-desktop-appletsrc? <br>
    <br>
    Thanks in advance!<br>
  </body>
</html>

[Attachment #6 (text/plain)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic