LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2014, 09:39 AM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Rep: Reputation: Disabled
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.
 
Old 04-18-2014, 02:06 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: FreeBSD 11.0-Current Slackware64-Current
Posts: 5,081
Blog Entries: 15

Rep: Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495
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.
 
Old 04-18-2014, 02:47 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 661

Rep: Reputation: Disabled
Quote:
Originally Posted by slack_ View Post
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
 
Old 04-18-2014, 02:55 PM   #4
genss
Member
 
Registered: Nov 2013
Posts: 661

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 04-18-2014, 03:08 PM   #5
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,208

Rep: Reputation: Disabled
Quote:
Originally Posted by slack_ View Post
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.
 
1 members found this post helpful.
Old 04-18-2014, 03:15 PM   #6
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,502

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
Quote:
Originally Posted by Emerson View Post
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.
 
Old 04-18-2014, 05:59 PM   #7
genss
Member
 
Registered: Nov 2013
Posts: 661

Rep: Reputation: Disabled
grow up you two
 
Old 04-18-2014, 07:37 PM   #8
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
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

Last edited by slack_; 04-18-2014 at 07:51 PM.
 
Old 04-18-2014, 07:55 PM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 518

Rep: Reputation: 101Reputation: 101
@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'.
Attached Files
File Type: txt remove-root-warning.diff.txt (346 Bytes, 38 views)
 
Old 04-18-2014, 08:20 PM   #10
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
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.

Last edited by slack_; 04-18-2014 at 08:50 PM.
 
Old 06-30-2015, 11:03 PM   #11
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), LMDE2(xfce), Debian 8.1(xfce), Debian 8.1 (min.)
Posts: 147

Rep: Reputation: 20
Quote:
Originally Posted by slack_ View Post
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. :-)
 
Old 07-01-2015, 03:40 AM   #12
55020
Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 608
Blog Entries: 4

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
 
Old 07-01-2015, 04:13 AM   #13
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 577

Rep: Reputation: 177Reputation: 177
slack_,

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open root in Thunar Fixit7 Linux Mint 3 04-01-2014 09:03 AM
[SOLVED] Root partition warning Shahnawaz Uqaili Linux - Newbie 17 06-06-2011 07:41 AM
[SOLVED] warning: group mockbuild does not exist - using root e3399 Linux - Newbie 2 03-29-2011 12:10 PM
[SOLVED] Thunar "Open root terminal here" solution security issues catkin Programming 3 11-18-2010 10:58 AM
/root/.ppprc warning ashwin_think Linux - Newbie 0 10-10-2008 02:01 AM


All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration