Results 1 to 5 of 5

Thread: How to edit this file ?

  1. #1
    Join Date
    May 2007
    Location
    Mideast US
    Beans
    364
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    How to edit this file ?

    Searching for a 12.04 solution to window border, found that I should change values shown by the center of the attached picture as "1" "1" "1" into other values.

    ----> How do I get into 'edit' mode for that file ? Yes, am a beguinner.

    The path for such file is
    Places > Computer > file system > usr > share > themes > Ambiance > metacity-1 > metacity-theme-1.xml
    Attached Images Attached Images
    Last edited by Innernet; February 17th, 2013 at 04:04 AM. Reason: Added 12.04 version

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How to edit this file ?

    Innernet; Hi !

    Open a terminal, and invoke ubuntu's file editor thus:
    Code:
    gksudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml
    Always a good idea to make a backup prior to editing any file -never can tell what perchances .
    Code:
    sudo cp /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml/usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml-bak
    (be less typing to cd to that directory -- not have to type that full path) in this instance copy and paste will get it done))

    Make your changes, save the file, exit gedit and reboot to see the effects of your edit.
    hth
    Last edited by Bashing-om; February 17th, 2013 at 04:08 AM. Reason: typo

  3. #3
    Join Date
    Aug 2007
    Beans
    110
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: How to edit this file ?

    You sound better than most beginners, listing the path correctly and sending a screenshot. Good job!

    There are several things you can do here. You could save the page from the browser to the destop so that you're not working on the original. Otherwise, if you want to use the terminal, open the terminal. The basic steps would be:

    1. navigate to the file
    2. make a backup (just in case)
    3. use nano or vim to edit the file
    4. save the new updated version

    You'll need to use sudo, however, as those files are owned by the root user. You sound like you'll be learning this quickly, so here's an example of the steps on my machine:

    Code:
    cd /usr/share/themes/Ambiance/metacity-1/
    
    sudo cp metacity-theme-1.xml  metacity-theme-backup.xml
    
    sudo nano metacity-theme-1.xml
    That will open the nano text editor in that file. You can make the changes you stated and then do CTRL-O to over-write the file and CTRL-x to exit nano. You can then exit the terminal.

    Hope that helps

  4. #4
    Join Date
    May 2007
    Location
    Mideast US
    Beans
    364
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to edit this file ?

    Total success !
    Thanks Bashing om =D>

    Now the window can be grabbed at its edges with ease for resizing, not fighting with 1 pixel positioning of the cursor !
    Last edited by Innernet; February 17th, 2013 at 04:21 AM.

  5. #5
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How to edit this file ?

    Innernet; You are most welcome; Glad to be of some small assistance.

    All things configurable, ain't ubuntu wonderfull !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •