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!
Announcement
Collapse
No announcement yet.
[SOLVED] Remove options from KDM
Collapse
This topic is closed.
X
X
-
Re: Remove options from KDM
You're running from a LiveCD? You are aware, yes, that any changes you make will not be permanent, that once you reboot, those changes will be gone?Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
-
Re: Remove options from KDM
I built the LiveCD, and I am modifying it from my chroot environment. I just cant seem to find the correct files to modify to remove the options under the Shutdown icon in KDM - so when I rebuild my ISO it is not on the LiveCD.
Sorry - I should have been more clear in my original post. I need to do it from the command line as I am running in a chroot environment to make the changes.
- Top
- Bottom
Comment
-
Re: Remove options from KDM
What 'options' from the Power Button (in KDM Logon) do you want to remove?Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Remove options from KDM
Honestly, if I could remove the power button altogether I would be a happy camper, but if that's not an option I would be happy with removing everything there except the shutdown option (remove: Switch User, Restart X Server, Remote Login, Console Login).
- Top
- Bottom
Comment
-
Re: Remove options from KDM
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:sudo cp /usr/share/apps/kdm/themes/dragon/dragon.xml /usr/share/apps/kdm/themes/dragon/dragon.xml_ORIGINAL
<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>
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>
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Remove options from KDM
That is fantastic! Thank you. I will give it a go and see what I come up with.
I have been thinking about escaping to TTY as well and thought I would look into disabling certain keystrokes or something, but that can wait for now. Thanks for your prompt responses. I really appreciate it.
- Top
- Bottom
Comment
-
Re: Remove options from KDM
Happy to help. I tested this before I posted, so I know it works.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Remove options from KDM
There is a KDM theme, else you wouldn't be presented with a KDM login screen. What version of Kubuntu are you running?
Edit: There will be a KDM theme if you have installed one. If you have not, then you are (likely) correct.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Remove options from KDM
Dude - I'm an idiot. I was not in my chroot environment so I didnt see the right stuff. I am building this kubuntu livecd from a command line only box, so that is why I didnt see it. *smacks head*
I see it now and am working on the changes...
- Top
- Bottom
Comment
-
Re: Remove options from KDM
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Remove options from KDM
Again, happy to have been of assistance. Would you kindly return to your first post here, click on modify and add SOLVED to the subject for the benefit of others.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
Comment