LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-17-2015, 09:40 AM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 437

Rep: Reputation: Disabled
A Gedit warning.


I have Ubuntu 14.04. gedit is my preferred text and code editor. All of a sudden I am getting this warnng when I open a txt file:

Quote:
(gedit:3860): Gtk-WARNING **: GtkScrolledWindow 0x9bba3c8 is mapped but visible child GtkScrollbar 0x9bbc7a8 is not mapped
There are four such warnings in a row (or rather column). They litter my terminal output. What is this and how to correct it?

Thanks, - A.
 
Old 01-17-2015, 11:02 AM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,351

Rep: Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316Reputation: 1316
When you run a program from the terminal, it will report anything irregular. When I review distros, I always check the apps by running them in a terminal, and it's actually quite unusual for none of them to give warnings! Complaints about Gtk are the usual ones, and nothing to worry about. This one will only go away with the next version of Gedit, although there may then be a different one. The only real problem is when you get a warning labeled CRITICAL, and even then the program may work.
 
1 members found this post helpful.
Old 01-17-2015, 02:34 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 437

Original Poster
Rep: Reputation: Disabled
Thank you, David. It is sort of informative but not really soothing. The warnings litter my terminal output. It is fairly annoying. Linux has much on the upside but some stuff on the downside also. - A.
 
Old 01-17-2015, 06:43 PM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 276Reputation: 276Reputation: 276
Use "gedit &". Adding the ampersand releases the binary from the terminal, and you shouldn't see the warnings. You can then use the terminal for other things while gedit is running, if you want.
 
1 members found this post helpful.
Old 01-22-2015, 06:22 PM   #5
AlexBB
Member
 
Registered: Mar 2014
Posts: 437

Original Poster
Rep: Reputation: Disabled
sgosnel, it does not work for kate. The editor simply opens a new file "&"
 
Old 01-22-2015, 06:40 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,359

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
If you don't want errors on the command line you should redirect stderr like so:
Code:
gedit 2>/dev/null
If you don't want any output redirect stdout as well like so:
Code:
gedit 1>/dev/null 2>/dev/null
Or if you use BASH
Code:
gedit &>/dev/null
Which redirects both stdout and stderr
 
Old 02-14-2015, 08:01 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 276Reputation: 276Reputation: 276
@AlexBB - are you using bash? Bash should not pass the ampersand character to kate or any other program. I can't say about other shells, though.
 
  


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
[SOLVED] Changing shortcut keys for gedit using /.config/gedit/accels has no impact in program charlemagne-is-my-son Linux - Software 1 12-16-2014 08:16 AM
[SOLVED] gedit-4865 gtk warning cannot open display rldavies Linux - Newbie 3 08-23-2012 04:53 AM
[SOLVED] Warning message or error when running gedit..etc chinho Linux - Software 1 12-28-2010 12:42 AM
(gedit:6540): Gtk-WARNING **: cannot open display: :0 jax8 Programming 3 05-07-2009 07:57 AM
gedit warning rithik_ghoshal Solaris / OpenSolaris 2 04-17-2008 10:57 AM


All times are GMT -5. The time now is 12:39 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