List Info

Thread: dia command line export needing X server




dia command line export needing X server
country flaguser name
France
2007-03-29 11:21:46
Hi all,

I've developped a small Mediawiki extension for dealing with
Dia file. 
That is to say, it allows a user to upload a Dia file and
integrate it 
into a mediawiki page. When viewing the page, the dia file
is 
automatically converted to png for viewing.

It already works quite well. However it looks like the
command line 
export of Dia require a that a X server run on the box.
Obviously my 
mediawiki runs on a server without head and there is no
Xserver running 
(actually it is a Xen virtual server, so virtually, there
isn't even a 
graphic card). To circumvent this issue, I installed a
virtual X server 
(Xvfb) and set the DISPLAY to use that X server. This issue
reminds me 
of an the same requirement of Java AWT graphic toolkit a few
years ago. 
The dependency has been removed since then. I hope it could
be possible 
for Dia too.

Is the X server requirement is due to Gnome/Gtk+ framework
or the dia 
package? Is there any way to use the command line
functionality without 
running an X server?

Cheers,

Denis

PS : I'll be glad to share the mediawiki extension if
anybody want it.

-- 

Denis Cardon
Tranquil IT Systems
10 rue du Docteur Bouchard
49400 Saumur
tel : +33 (0) 2.41.67.56.99
fax : +33 (0) 2.40.56.09.81
mob : +33 (0) 6 81 66 27 62
http://www.tranquil
-it-systems.fr


_______________________________________________
Dia-list mailing list
Dia-listgnome.org
http:
//mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/D
ia/Faq
Main page at http://live.gnome.org/Dia


Re: dia command line export needing X server
country flaguser name
Denmark
2007-03-29 11:29:42
On Thu, 2007-03-29 at 18:21 +0200, Cardon Denis wrote:
> Hi all,
> 
> I've developped a small Mediawiki extension for dealing
with Dia file. 
> That is to say, it allows a user to upload a Dia file
and integrate it 
> into a mediawiki page. When viewing the page, the dia
file is 
> automatically converted to png for viewing.
> 
> It already works quite well. However it looks like the
command line 
> export of Dia require a that a X server run on the box.
Obviously my 
> mediawiki runs on a server without head and there is no
Xserver running 
> (actually it is a Xen virtual server, so virtually,
there isn't even a 
> graphic card). To circumvent this issue, I installed a
virtual X server 
> (Xvfb) and set the DISPLAY to use that X server. This
issue reminds me 
> of an the same requirement of Java AWT graphic toolkit
a few years ago. 
> The dependency has been removed since then. I hope it
could be possible 
> for Dia too.
> 
> Is the X server requirement is due to Gnome/Gtk+
framework or the dia 
> package? Is there any way to use the command line
functionality without 
> running an X server?

This has previously been reported in
http
://bugzilla.gnome.org/show_bug.cgi?id=119331 and fixed. 
Do you run
with --nosplash?

> PS : I'll be glad to share the mediawiki extension if
anybody want it.

A link to it would be nice for the Links page.

-Lars

_______________________________________________
Dia-list mailing list
Dia-listgnome.org
http:
//mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/D
ia/Faq
Main page at http://live.gnome.org/Dia


Re: dia command line export needing X server
country flaguser name
France
2007-04-01 09:34:28
Hi Lars and al.
>> Is the X server requirement is due to Gnome/Gtk+
framework or the dia 
>> package? Is there any way to use the command line
functionality without 
>> running an X server?
>>     
>
> This has previously been reported in
> http
://bugzilla.gnome.org/show_bug.cgi?id=119331 and fixed. 
Do you run
> with --nosplash?
>   
you'right... so sorry I missed it in the bugzilla. Actually,
using the 
--nosplash flag it works like a charm (put aside a little
warning about 
not being able to open X server connexion). Might be
interesting to add 
this feature in the --help or in the man page, since one
would assume 
that there is obviously no splash when dia is run from the
command line 
to run an export.
>> PS : I'll be glad to share the mediawiki extension
if anybody want it.
>>     
> A link to it would be nice for the Links page.
>   
I'll clean the code a little bit and submit it on mediawiki
extension 
repository.

Cheers,

Denis
> -Lars
>
> _______________________________________________
> Dia-list mailing list
> Dia-listgnome.org
> http:
//mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/D
ia/Faq
> Main page at http://live.gnome.org/Dia
>
>
>   


-- 
Denis Cardon
Tranquil IT Systems
10 rue du Docteur Bouchard
49400 Saumur
tel : +33 (0) 2.41.67.56.99
fax : +33 (0) 2.40.56.09.81
mob : +33 (0) 6 81 66 27 62
http://www.tranquil
-it-systems.fr


_______________________________________________
Dia-list mailing list
Dia-listgnome.org
http:
//mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/D
ia/Faq
Main page at http://live.gnome.org/Dia


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )