GNOME Bugzilla – Bug 71569
'gdialog --clear-rc <file> ' command not working
Last modified: 2004-12-22 21:47:04 UTC
I have taken the latest source of gnome-utils (ver 1.99) from cvs on tuesday (12/2/2002) along with all its dependencies. Reproducibility : always Steps to be performed: 1) Open any gnome terminal. 2) Type the command 'gdialog --clear-rc <specify the path of any file>' in the command prompt. 3)gdialog usage is displayed as a result of executing the step 2.
That's probably because the usage file specifies 'create-rc' not 'clear-rc' :) But that option does not appear to work either. It appears that this and --clear are provided mainly to make gdialog drop in compatible with dialog; should this be made clear in the docs, maintainers? i.e., replace --- --clear The screen will be cleared to the screen attribute on exit. --create-rc file Since gdialog supports run-time configuration, this can be used to dump a sample configuration file to the file specified by file. --- with --- --clear, --create-rc file 'null ops provided for compatibility with dialog' --- or something like that? Marking High with reservations- it is basically non-operational and completely broken, but overall is not a particularly big deal.
*** Bug 71565 has been marked as a duplicate of this bug. ***
This util is becoming a pain...but lets try and resolve this for 2.0.
Punting gdialog
Hmm...seems like it will only ever create the rc file if DISPLAY is not set, so running from an xterm is always going to fail. Nasty patch to fix this follows.
Created attachment 12817 [details] [review] Make --create-rc work
can't say i can comment on whether it's nasty or not. gdialog is generally nasty...feel free to commit.
done. can somebody close this bug? I don't have the necessary rights :(
ROCK! Closing.