Bug 87389 - kdialog does not respect geometry option
Summary: kdialog does not respect geometry option
Status: CONFIRMED
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-17 21:59 UTC by Dylan Huang
Modified: 2017-06-25 22:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Huang 2004-08-17 21:59:43 UTC
Version:            (using KDE KDE 3.2.92)
Installed from:    Slackware Packages

kdialog does not respect --geometry in command line. Dialogs like textbox and msgbox are always placed in the center of screen (stil bearable) while passivepopup always sits in the left-top corner (very annoying).
Comment 1 Brad Hards 2004-08-28 14:18:59 UTC
CVS commit by bhards: 

Initial support for --geometry argument. 

Works for text boxes, menus (including checklists, radiolists and
comboboxes), password dialogs.

Doesn't work for message boxes, input boxes, file dialogs or passive
popup. Passive popup is looking particularly messy.

CCMAIL: 87389@bugs.kde.org


  M +1 -1      progressdemo   1.2
  M +2 -0      progressdialog.cpp   1.4
  M +18 -10    test   1.10
  M +32 -0     widgets.cpp   1.10
  M +3 -0      widgets.h   1.8



Comment 2 Rick Jenkins 2004-11-18 18:29:54 UTC
As a minor wishlist item, a reference to man X in the kdialog --help-kde entry for --geometry would make the format of the argumnets transparently clear.
Comment 3 Rick Jenkins 2004-11-20 00:37:24 UTC
Apparently the CVS commit in comment #1 above has not made it into KDE 3.3.1. Can you give us any idea of when it will be part of the release?
Comment 4 David Faure 2004-11-20 11:38:17 UTC
New features don't make it to stable branches.
Comment 5 Brad Hards 2004-12-11 09:48:41 UTC
I've just committed the change for the --geometry text. You can expect to see that in KDE 3.4 as well.
Comment 6 Christophe Fonteyne 2005-02-28 18:26:11 UTC
Could this be done for the passivepopup window as well? I'd like to call passivepopup windows from a shell script, but having them appear in the upper left corner makes them hardly visible (at least on my desktop). I'd like to have them appear near the systray, just like the popups from kopete. Or is there another way to do that?
Comment 7 Brad Hards 2005-02-28 22:18:06 UTC
Sure, I'd like to do it for everything. However I am not seeing an easy way.
Comment 8 Maciej Pilichowski 2007-07-05 09:59:49 UTC
Passive popups seems to work (3.5.7) but still several "normal" dialog windows do not -- for example msgbox.
Comment 9 Daniel Pinto dos Santos 2009-04-09 18:34:27 UTC
This problem is still not fixed in KDE 4.2.1 and makes it very difficult to write nice kdialog scripts.
E.g. kdialog --geometry 400x200 --inputbox "bla bla \n bla" doesn't respect it at all.
Another funny thing is that --inputbox doesn't respect the \n as well, whereas --msgbox does a nice newline...
Would be really great if this could somehow be fixed...
Comment 10 Brad Hards 2009-04-10 05:15:13 UTC
I'll take a patch for the --geometry issue if you have one. It isn't that it isn't meant to work (i.e. this is a valid bug), it is just that it isn't very important to me, and last time I looked it isn't trivial to fix.

The \n issue is covered in https://bugs.kde.org/show_bug.cgi?id=148575

Thanks for using kdialog and reporting the issue is still valid though.