How Do I open a gresource file
I am attempting to edit the adwaita theme, the only way to do this is to open the gtk.gresource file. Gedit will not open the file, Geany will not open the file. How do I open the file so I can edit the gtk.css Thank you.
14.04 themes
add a comment |
I am attempting to edit the adwaita theme, the only way to do this is to open the gtk.gresource file. Gedit will not open the file, Geany will not open the file. How do I open the file so I can edit the gtk.css Thank you.
14.04 themes
add a comment |
I am attempting to edit the adwaita theme, the only way to do this is to open the gtk.gresource file. Gedit will not open the file, Geany will not open the file. How do I open the file so I can edit the gtk.css Thank you.
14.04 themes
I am attempting to edit the adwaita theme, the only way to do this is to open the gtk.gresource file. Gedit will not open the file, Geany will not open the file. How do I open the file so I can edit the gtk.css Thank you.
14.04 themes
14.04 themes
asked Jan 11 '15 at 15:39
AdamAdam
12629
12629
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
since some time, GTK-3 theme CSS files are precompiled into a binary format (*.gresource
) and installed as a bundle. There is a helper program called gresource to deal with these files
- usually, it is installed alongside with the library GLib
- thus it should be in the package
libglib2.0-bin
- and since this package is usually already installed, you'll find it in your
/usr/bin
and get more documentation by invokingman gresource
In short
to list the contents of a
*.gresource
file:
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level gtk-3.0/gtk.css
file within your theme. In binary themes, you'll find there a URL reference
@import url("resource:///org/gnome/THEMENAME/gtk-main.css");
You need to change this reference to point to your locally installed files
@import url("gtk-main.css");
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
add a comment |
$ file gtk.*
gtk.css: ASCII text
gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f572511%2fhow-do-i-open-a-gresource-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
since some time, GTK-3 theme CSS files are precompiled into a binary format (*.gresource
) and installed as a bundle. There is a helper program called gresource to deal with these files
- usually, it is installed alongside with the library GLib
- thus it should be in the package
libglib2.0-bin
- and since this package is usually already installed, you'll find it in your
/usr/bin
and get more documentation by invokingman gresource
In short
to list the contents of a
*.gresource
file:
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level gtk-3.0/gtk.css
file within your theme. In binary themes, you'll find there a URL reference
@import url("resource:///org/gnome/THEMENAME/gtk-main.css");
You need to change this reference to point to your locally installed files
@import url("gtk-main.css");
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
add a comment |
since some time, GTK-3 theme CSS files are precompiled into a binary format (*.gresource
) and installed as a bundle. There is a helper program called gresource to deal with these files
- usually, it is installed alongside with the library GLib
- thus it should be in the package
libglib2.0-bin
- and since this package is usually already installed, you'll find it in your
/usr/bin
and get more documentation by invokingman gresource
In short
to list the contents of a
*.gresource
file:
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level gtk-3.0/gtk.css
file within your theme. In binary themes, you'll find there a URL reference
@import url("resource:///org/gnome/THEMENAME/gtk-main.css");
You need to change this reference to point to your locally installed files
@import url("gtk-main.css");
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
add a comment |
since some time, GTK-3 theme CSS files are precompiled into a binary format (*.gresource
) and installed as a bundle. There is a helper program called gresource to deal with these files
- usually, it is installed alongside with the library GLib
- thus it should be in the package
libglib2.0-bin
- and since this package is usually already installed, you'll find it in your
/usr/bin
and get more documentation by invokingman gresource
In short
to list the contents of a
*.gresource
file:
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level gtk-3.0/gtk.css
file within your theme. In binary themes, you'll find there a URL reference
@import url("resource:///org/gnome/THEMENAME/gtk-main.css");
You need to change this reference to point to your locally installed files
@import url("gtk-main.css");
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
since some time, GTK-3 theme CSS files are precompiled into a binary format (*.gresource
) and installed as a bundle. There is a helper program called gresource to deal with these files
- usually, it is installed alongside with the library GLib
- thus it should be in the package
libglib2.0-bin
- and since this package is usually already installed, you'll find it in your
/usr/bin
and get more documentation by invokingman gresource
In short
to list the contents of a
*.gresource
file:
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level gtk-3.0/gtk.css
file within your theme. In binary themes, you'll find there a URL reference
@import url("resource:///org/gnome/THEMENAME/gtk-main.css");
You need to change this reference to point to your locally installed files
@import url("gtk-main.css");
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
edited 11 mins ago
pomsky
30.5k1193127
30.5k1193127
answered Jul 30 '15 at 21:26
IchthyoIchthyo
17315
17315
add a comment |
add a comment |
$ file gtk.*
gtk.css: ASCII text
gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
add a comment |
$ file gtk.*
gtk.css: ASCII text
gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
add a comment |
$ file gtk.*
gtk.css: ASCII text
gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.
$ file gtk.*
gtk.css: ASCII text
gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.
answered Jan 11 '15 at 15:58
RinzwindRinzwind
206k28394526
206k28394526
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
add a comment |
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
Thanks Rinzwind. But I don't understand what you wrote in code.
– Adam
Jan 11 '15 at 16:38
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f572511%2fhow-do-i-open-a-gresource-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown