Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to customise my own theme. I have found a theme I like which is Black-n-Blue-GTK but I want to change some of the colours and other features as well. I copied the Black-n-Blue-GTK folder and renamed it My-Theme and then edited index theme so that it showed up in Themes, no problem. I can switch to My-Theme and it obviously looks exactly like Black-n-Blue-GTK.
So, Im trying to edit metacity-theme-1.xml, but no matter how small a change I make, once I click save the theme will no longer load. If I restore metacity-theme-1.xml back to the original, it then works perfectly again.
I tried editing the metacity-theme-1.xml file of other themes and the same thing happens.
I tried following the instructions in the first reply here:
please post the original part of the .xml file, and your modified.
(not the whole file, just the lines you modified, plus a few lines of context )
please use code tags for code.
yeah the syntax looks ok.
how are you editing the file, how are you saving it, are you closing the editor afterwards?
where is the file in your tree? and you are absolutely positive that the file works when you undo everything? do you undo from the text editor, or by re-copying the original file?
is the theme named differently than the original inside the index.theme? it should, otherwise the system decides on using only one of the two.
is the xml file the exact same name as the xml file from the original theme?
I'm using XML Copy Editor. If I open up the file place the cursor anywhere, hit space and then delete. I save a file that is identical to the original but it will no longer work. If I go to the original install archive file for the theme and copy the original xml file from there back into the folder in ./themes then the theme will work again.
never heard of it.
it probably messed up the formatting/encoding of your file.
anyhow, please try the same with a plain text editor that already came with your distro (leafpad, mousepad) or some ide known to work on linux, like geany.
i know that xml is a pita to edit manually, but if you use sth like geany, you get syntax highlighting (choose a dark theme!) and it becomes much easier.
i'm not sure about the validating stuff, but you could also look at
xmlstarlet
bluefish
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.