Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:01:19+00:00 2026-06-05T09:01:19+00:00

I have been trying use zenity with standard re-direction in a shell script, something

  • 0

I have been trying use zenity with standard re-direction in a shell script, something like

for i in $(seq 1 10); do echo $i; done | zenity –list –column =”Number”

But on the command line this works , but throws the following warning:

(zenity:3328): GLib-WARNING **: Invalid file descriptor.

This seems to happen only when data is redirected to the Zenity command through a pipe.

Could anyone please tell me what this warning signifies?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:01:20+00:00Added an answer on June 5, 2026 at 9:01 am

    This error is triggered by attempting to close stdin twice – once after all the data has been read from the sequence, and then secondly as it’s just about to quit – this is in the zenity source. It’s purely cosmetic and can be safely ignored – the zenity code is doing nothing else except quitting at that point.

    In the handler zenity_tree_handle_stdin, towards the end of the routine it closes the same channel (there is variable hiding caused by using the same named variable in the function and at the global scope):

    if ((condition != G_IO_IN) && (condition != G_IO_IN + G_IO_HUP)) {
      g_io_channel_shutdown (channel, TRUE, NULL);
      return FALSE;
    }
    

    In tree.c ~line 648 as the program is about to exit:

      if (channel != NULL)
        g_io_channel_shutdown (channel, TRUE, NULL);
    

    Both of these code paths will attempt to close the same channel, causing the warning. Because the next thing done after line 648 is to issue a gtk_main_quit, then I think the warning can be safely ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use Hibernate for a while. I like hibernate that
I have been trying to use an ajax-style file upload component (like the dojox
I have been trying to use routes.rb for creating a URL /similar-to-:product (where product
I have been trying to use the hibernate dialect for SQLite from http://code.google.com/p/hibernate-sqlite/ in
I have been trying to use/save the boolean value of a checkbox in other
I have been trying to use 3rd party tool called visiblox for rendering charts
I have been trying to use the document.getElementByID to pull information from an HTML
Right now I have been trying to use Launchpad's API to write a small
Ok I'm stumped. I have been trying to use Simpletip to create a tooltip
I have been trying to figure out why and how to use performSelector. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.