Announcement

Collapse
No announcement yet.

Actions->Edit As Root

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

    Actions->Edit As Root

    When I right click on a file in Konqueror and chose the option 'Edit As Root', the file opens in the Kwrite editor.

    How can I change this to open with the Kate editor instead?

    Thanks,

    Arif

    #2
    Re: Actions->Edit As Root

    Not sure how to do it from Konqueror (I think it's a default programs thing?), but the terminal command you need it

    sudo kate
    and then open the file from within kate.

    I think.

    Comment


      #3
      Re: Actions->Edit As Root

      there is an easier way really, say i have a file called tweaks in my home folder you can type

      sudo kate home/*/tweaks.

      * would be your username

      Comment


        #4
        Re: Actions->Edit As Root

        Except you would use
        Code:
        kdesu kate
        instead of
        Code:
        sudo kate
        http://www.psychocats.net/ubuntu/graphicalsudo
        Linux is ready for the desktop--but whose desktop?<br />How to install software in Kubuntu

        Comment


          #5
          Re: Actions-&gt;Edit As Root

          This had me thinking, and this is what I came up with:

          1. Go to /usr/share/apps/konqueror/servicemenus and look for edit-as-root.desktop
          2. open it as root (Edit as Root or run "kdesu kate") and replace

          Exec=kdesu "kwrite" "%U"
          with

          Exec=kdesu "kate" "%U"
          Worked for me.
          Jucato&#39;s Data Core

          Comment


            #6
            Re: Actions-&gt;Edit As Root

            Originally posted by Jucato
            This had me thinking, and this is what I came up with:

            1. Go to /usr/share/apps/konqueror/servicemenus and look for edit-as-root.desktop
            2. open it as root (Edit as Root or run "kdesu kate") and replace

            Exec=kdesu "kwrite" "%U"
            with

            Exec=kdesu "kate" "%U"
            Worked for me.
            That will do it, but you might also wish to copy 'edit-as-root.desktop' to users home directory (~/.kde/share/apps/konqueror/servicemenus) and edit the copy. Otherwise upgrades may overwrite your changes and you'll have to edit again.

            Comment


              #7
              Re: Actions-&gt;Edit As Root

              Originally posted by aysiu
              Except you would use
              Code:
              kdesu kate
              instead of
              Code:
              sudo kate
              http://www.psychocats.net/ubuntu/graphicalsudo
              Very imformative, thank you You helped my learning curve rise slightly this week.

              Comment

              Working...
              X