Bug 111388 - wish: kdialog should accept preformatted text, and from stdin
Summary: wish: kdialog should accept preformatted text, and from stdin
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
: 111389 (view as bug list)
Depends on:
Blocks: 117452
  Show dependency treegraph
Reported: 2005-08-24 00:17 UTC by Richard Neill
Modified: 2016-08-17 13:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Richard Neill 2005-08-24 00:21:38 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Mandriva RPMs
OS:                Linux

Two ways kdialog could be improved:

1)It should be able to accept text from stdin, eg "fortune | kdialog --msgbox -"
(gnome-dialog and Xdialog can both do this)

2)It should have an option --dont-double-newlines. Currently, if the text contains 
a sequence of one or more newlines, kdialog converts these to exactly 2 newlines.
i.e.  \n  or \n\n or \n\n\n   all become <br><br>.
This is sensible behaviour most of the time, but not always, especially if the text is dynamic, and 
therefore not known to the author of the script.

2b)It should  (perhaps) have an option --nowrap which would prevent line wraps from occurring.

A good example of this would be to display a fortune when the user logs in,  (via .kde/Autostart). 
The text from fortune is already preformatted, and the result looks ugly.
Comment 1 Yves Glodt 2008-11-13 12:47:33 UTC
In the meantime, is there a way to get text from stdin ?

I would like to make kdialog show firebird's gbak log
Comment 2 Yves Glodt 2008-11-13 12:54:06 UTC
It is already possible like this:

df -Th | kdialog --textbox /dev/stdin 500 250
Comment 3 Frederik Schwarzer 2008-12-06 01:46:20 UTC
*** Bug 111389 has been marked as a duplicate of this bug. ***
Comment 4 Tristan Miller 2016-08-17 13:18:52 UTC
Yves, your pipe trick doesn't work with KDialog 1.0.

KDialog should support the standard - option to read from stdin, per Bug 175649.
Comment 5 Tristan Miller 2016-08-17 13:20:37 UTC
Sorry, in the previous comment I meant to write Bug 117452.  (Copy-paste error.)