Announcement

Collapse
No announcement yet.

[SOLVED] Remove options from KDM

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Remove options from KDM

    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!

    #2
    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

    Comment


      #3
      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.

      Comment


        #4
        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

        Comment


          #5
          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).

          Comment


            #6
            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
            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).
            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

            Comment


              #7
              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.

              Comment


                #8
                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

                Comment


                  #9
                  Re: Remove options from KDM

                  I am going to assume that I need to install a theme to do it this way since I don't have a kdm directory in /usr/share/apps

                  I will do that and see how it goes. Thanks again!

                  Comment


                    #10
                    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

                    Comment


                      #11
                      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...

                      Comment


                        #12
                        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

                        Comment


                          #13
                          Re: Remove options from KDM

                          Snowhog - You are awesome. It is working just like I wanted now (in regard to the buttons). I really appreciate all the assistance. Cheers to you sir (or ma'am, as the case may be)!

                          Comment


                            #14
                            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

                            Comment


                              #15
                              Re: [SOLVED] Remove options from KDM

                              Done.

                              Comment

                              Working...
                              X