Summary: | make command line export of graphics independent from X | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Daniel Franke <franke.daniel> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kip, okellogg, ralf.habacker |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Daniel Franke
2006-07-11 10:44:01 UTC
If I'm not wrong, I think that this can't be done, at least with the current internal design of Umbrello. The main class of Umbrello is UMLApp. This class inherits, through some other classes, from QWidget. The problem is that when a KApplication is executed without connecting to X server, QWidgets can't be created (the application crashes with this message: "QWidget: Cannot create a QWidget when no GUI is being used"). So, as UMLApp is itself a QWidget, it can't be created. Provided I haven't mistaken anything, to fix this bug a major redesign should be made in Umbrello internal code. If anyone would like to implement this, we can always reopen :) I made an entry for this in the Umbrello FAQ, http://uml.sourceforge.net/faq.php#headless *** This bug has been marked as a duplicate of bug 283748 *** Thanks Oliver. I wonder if Ralph's potential workaround should be mentioned in #headless: <https://bugs.kde.org/show_bug.cgi?id=283748#c9> (In reply to comment #4) > Thanks Oliver. I wonder if Ralph's potential workaround should be mentioned > in #headless: > > <https://bugs.kde.org/show_bug.cgi?id=283748#c9> Good point. Done. Thanks Oliver. Just for the benefit of anyone else wanting to do this, here is an example: $ xvfb-run umbrello --export eps Diagram.xmi On my distro (Ubuntu Precise), xvfb-run is found in a package called xvfb. >http://uml.sourceforge.net/faq.php#headless
s/prodive/provide/
Just a note to the mentioned package : this is on opensuse 12.2
|