You are not logged in.
Pages: 1
hello all,
is it possible, to change the yellow background color of the root-warning to another color?
I have search the code in thunar-window.c, but I can't find it.
Thanks in advance.
Offline
This still works for me on 1.6.12. Make sure you create the correct png file and that you call thunar using the command posted there.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hello ToZ,
thanks for your quickly answer.
Which png file do you mean?
Offline
...note: you need a red.png file in your home directory thats basically a 50x20 square of the colour red (or any other colour that you want as a background).
MX-23 (based on Debian Stable) with our flagship Xfce 4.18.
Offline
Is this the correct path?
/home/user/red.png
or
/home/user/.config/Thunar/red.png
Both variants are failed.
Sorry for my bad english, it's not my native language.
Offline
Put the both the red.png and the .gtkrc-thunar-rootfile files in your home directory. Note that red.png is a png file that you create yourself that is 50x20 in size and is coloured red. You can change the colour to whatever colour you want to use.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks for your answer.
I give up.
I dont know the content for .gtkrc-thunar-rootfile, and a search in xfce wiki or google brings no help.
Offline
Thanks for your answer.
I give up.
I dont know the content for .gtkrc-thunar-rootfile, and a search in xfce wiki or google brings no help.
It's in the previous thread located here.
Specifically:
1. Create the file .gtkrc-thunar-rootfile in your home directory with the following content:
style "my-infobar" {
xthickness = 4
ythickness = 4
engine "pixmap" {
image {
function = BOX
state = NORMAL
file = "red.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image {
function = BOX
state = PRELIGHT
file = "red.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image {
function = BOX
state = ACTIVE
file = "red.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image {
function = BOX
state = INSENSITIVE
file = "red.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
}
}
widget_class "*<GtkInfoBar>*" style "my-infobar"
2. Also create the red.png file in your home directory.
3. Then, call root thunar like this:
gksudo env GTK2_RC_FILES=~/.gtkrc-thunar-root thunar
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hello ToZ,
now I am ashamed, I had completely forgotten this.
At that time, however, it had also not functioned, and now it also does not function.
It is a Debian Sid, I have removed Thunar and new installed. Unfortunately no success.
Then I've thunar new compiled and in thunar-window.c the questions on 0 to 1 changed:
if (G_UNLIKELY (geteuid () == 1))
Now it is as well as me it wants.
Two screenshots are added.
Again many thanks for your help.
Offline
By changing the code like that , you've removed the "running as root" indicator. Be careful when using thunar - you won't have a visual indicator that you have root access to your files. Might be dangerous.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Yes, I know that, but I use linux more than 15 years and know what I make.
This is no option for beginners...
Offline
Pages: 1
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 560.59 KiB (Peak: 577.43 KiB) ]