This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Remove options from KDM

Tags: None
(comma "," separated)
dtrotter
Registered Member
Posts
1
Karma
0
OS

Remove options from KDM

Wed Mar 24, 2010 6:13 pm
I would like to remove some options from the Power Button at the KDM login window. I am unable to locate the proper config file to do so. Can anyone assist with this? I am using KDM on a kiosk LiveCD so I will need to be able to make these changes from the command line... Thanks!
User avatar
Snowhog
Registered Member
Posts
198
Karma
1
OS

Re: Remove options from KDM

Wed Mar 24, 2010 10:32 pm
Here's how you do that.

KDM themes are located in /usr/share/apps/kdm/themes and for this explanation, I'll be using my KDM theme called dragon.

1) Make a copy of the .xml file:

Code: Select all
sudo cp /usr/share/apps/kdm/themes/dragon/dragon.xml   /usr/share/apps/kdm/themes/dragon/dragon.xml_ORIGINAL


2) As root, edit the dragon.xml file and remove the following two sections:

<item type="pixmap" id="session_button" button="true">
<normal file="session_button.png"/>
<prelight file="session_button-li.png"/>
<active file="session_button-li.png"/>
<pos anchor="w" x="15" y="50%"/>
</item>

<item type="pixmap" id="system_button" button="true">
<normal file="system_button.png"/>
<prelight file="system_button-li.png"/>
<active file="system_button-li.png"/>
<pos anchor="w" x="47" y="50%"/>
</item>


3) Save and close.

Now you can see the results: K > Leave > Logout > Logout and when the KDM logon screen displays, the Session and System buttons (and the access menus they would present) are no more. If you only want to remove the System button, then just remove:

<item type="pixmap" id="system_button" button="true">
<normal file="system_button.png"/>
<prelight file="system_button-li.png"/>
<active file="system_button-li.png"/>
<pos anchor="w" x="47" y="50%"/>
</item>


Keep in mind, that this does not prevent anyone from pressing Ctrl+Alt+F1 to get to TTY1 (terminal 1).


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft