LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 464

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
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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: 464

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 Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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: 464

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: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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 Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
@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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 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
Open Source Consulting | Domain Registration