LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Thunar Root Warning (https://www.linuxquestions.org/questions/slackware-14/thunar-root-warning-4175502178/)

slack_ 04-18-2014 09:39 AM

Thunar Root Warning
 
I was just curious, but did anyone manage to remove this? I followed this link: http://www.sgvulcan.com/remove-the-thunar-root-warning/

However it straight up just didn't work at all. Everything built successfully, but I still see that ugly warning when I run thunar. Just wondering if anyone has successfully done this. Oh, and please, I know it's a bad idea to run root and I'm wide open to script kiddies and blah blah blah. The very worst that could happen is I have to reinstall fresh because I decided the best way to start my morning is to rm -rf * /. I run linux as a hobby so I don't really mind.

ReaperX7 04-18-2014 02:06 PM

I got used to it. Just a warning label that you're accessing as root. It's not going to harm you to see it.

genss 04-18-2014 02:47 PM

Quote:

Originally Posted by slack_ (Post 5155073)
I decided the best way to start my morning is to rm -rf * /.

the asterisk is redundant, recursive on root dir gets it all

had to abuse context :)

genss 04-18-2014 02:55 PM

http://bazaar.launchpad.net/~vcs-imp...hunar-window.c

line 834

idk how that patch in the link even works
but you can just unpack the official one and repack it


sry admins for double post, i forget this is a proper forum that lets you edit

Emerson 04-18-2014 03:08 PM

Quote:

Originally Posted by slack_ (Post 5155073)
The very worst that could happen is I have to reinstall fresh because I decided the best way to start my morning is to rm -rf * /. I run linux as a hobby so I don't really mind.

No the very worst that can happen your box gets owned and will be used for criminal activities against other computers and networks.

Or lets put it this way, you are like a drunk driver who thinks: Eh, my car is old, even if I crash it I can live with it. You do not realize you could kill somebody.

273 04-18-2014 03:15 PM

Quote:

Originally Posted by Emerson (Post 5155237)
No the very worst that can happen your box gets owned and will be used for criminal activities against other computers and networks.

Or lets put it this way, you are like a drunk driver who thinks: Eh, my car is old, even if I crash it I can live with it. You do not realize you could kill somebody.

Nicely put.
I'm constantly amazed that people who don't understand enough to comment out a piece of code think they know better than the people who wrote that code.

genss 04-18-2014 05:59 PM

grow up you two

slack_ 04-18-2014 07:37 PM

Fortunately I won't kill anybody with my computer. Anyway, I managed to successfully remove the root warning. For the sake of this thread I'll post how and whatnot. As genss recommended, I unpacked the official .xz package and located the thunar-window.c file. Thanks genss for showing me where in the file the line was otherwise I wouldn't be posting my success. Commented out the related section and the just configured and installed the source. Thunar no longer has the root warning.

Thanks.

EDIT: I should also mention that even though this is sort of a petty thing to want, it's amazing how CRAZILY better Thunar looks without the warning :)

BrZ 04-18-2014 07:55 PM

1 Attachment(s)
@slack_

Quote:

--- ./thunar/thunar-window.c
+++ ./thunar/thunar-window.c
@@ -832,7 +832,7 @@
G_OBJECT (window->spinner), "visible");

/* check if we need to add the root warning */
- if (G_UNLIKELY (geteuid () == 0))
+ if (G_UNLIKELY (1 == 0))
{
/* add the bar for the root warning */
infobar = gtk_info_bar_new ();
As some quoted information can loose the original format, you can rename the attached diff to 'remove-root-warning.diff' and edit the build script to replace the patch line with 'cat $CWD/remove-root-warning.diff | patch -p1 --verbose || exit 1'.

slack_ 04-18-2014 08:20 PM

Thank you BrZ. I appreciate your help. However, I've already succeeded at removing the root warning in Thunar. It was easier then I expected.

mzsade 06-30-2015 11:03 PM

Quote:

Originally Posted by slack_ (Post 5155326)
Fortunately I won't kill anybody with my computer. Anyway, I managed to successfully remove the root warning. For the sake of this thread I'll post how and whatnot. As genss recommended, I unpacked the official .xz package and located the thunar-window.c file. Thanks genss for showing me where in the file the line was otherwise I wouldn't be posting my success. Commented out the related section and the just configured and installed the source. Thunar no longer has the root warning.

Thanks.

EDIT: I should also mention that even though this is sort of a petty thing to want, it's amazing how CRAZILY better Thunar looks without the warning :)

Could you please elaborate on "official .xz package" and locating the thunar-window.c file for a lowly belligerent noob? I have also downloaded the thunar-window.c file but haven't the faintest what to do with it. It's a single user desktop and a debian test install, and i assure you that i am aware and in my senses when i login as root. :-)

55020 07-01-2015 03:40 AM

mzsade,

(1) this thread is more than a year old, so most of these people are probably not reading this thread;

and (2) this thread is in the Slackware forum, the advice was for Slackware only, your Debian does not have an "official .xz package".

You need to go to a Debian forum and ask how you can build a Debian thunar package from source.

solarfields 07-01-2015 04:13 AM

slack_,

wait... are you always logged in as root? that's how you use your system?


All times are GMT -5. The time now is 03:58 PM.