<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>111388</bug_id>
          
          <creation_ts>2005-08-24 00:17:48 +0000</creation_ts>
          <short_desc>wish: kdialog should accept preformatted text, and from stdin</short_desc>
          <delta_ts>2025-07-13 18:28:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdialog</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Mandriva RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>117452</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Richard Neill">kde</reporter>
          <assigned_to name="Brad Hards">bradh</assigned_to>
          <cc>psychonaut</cc>
    
    <cc>yg</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>19</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>368269</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Neill">kde</who>
    <bug_when>2005-08-24 00:21:38 +0000</bug_when>
    <thetext>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 &quot;fortune | kdialog --msgbox -&quot;
(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 &lt;br&gt;&lt;br&gt;.
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664272</commentid>
    <comment_count>1</comment_count>
    <who name="Yves Glodt">yg</who>
    <bug_when>2008-11-13 12:47:33 +0000</bug_when>
    <thetext>In the meantime, is there a way to get text from stdin ?

I would like to make kdialog show firebird&apos;s gbak log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664276</commentid>
    <comment_count>2</comment_count>
    <who name="Yves Glodt">yg</who>
    <bug_when>2008-11-13 12:54:06 +0000</bug_when>
    <thetext>It is already possible like this:

df -Th | kdialog --textbox /dev/stdin 500 250</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>676310</commentid>
    <comment_count>3</comment_count>
    <who name="Frederik Schwarzer">schwarzer</who>
    <bug_when>2008-12-06 01:46:20 +0000</bug_when>
    <thetext>*** Bug 111389 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1614831</commentid>
    <comment_count>4</comment_count>
    <who name="Tristan Miller">psychonaut</who>
    <bug_when>2016-08-17 13:18:52 +0000</bug_when>
    <thetext>Yves, your pipe trick doesn&apos;t work with KDialog 1.0.

KDialog should support the standard - option to read from stdin, per Bug 175649.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1614833</commentid>
    <comment_count>5</comment_count>
    <who name="Tristan Miller">psychonaut</who>
    <bug_when>2016-08-17 13:20:37 +0000</bug_when>
    <thetext>Sorry, in the previous comment I meant to write Bug 117452.  (Copy-paste error.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>