Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread newsgroups.ma...@stefanbaur.de

Am 13.02.2012 11:02, schrieb Sören Plönnigs:
is it possible to remove the dependency for kdialog from x2goserver 
package?


# grep '\bkdialog\b' x2goserver_3.0.99.10
./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
system(kdialog --error \@line[1]\);

It's not nice that a bunch of kde packages is needed in a non kde 
environment.


Disclaimer: I am not one of the coders.

While I'm currently using KDE (and Trinity), I'm absolutely with you 
that this shouldn't be hard-coded.
And I do remember seeing a rather clever hack in a bash script once, 
that tried to figure out which dialog frontend to use (I think it tried 
Gnome, KDE, Xdialog and finally an xterm with regular dialog inside, if 
it detected an X Session, and regular dialog on the console, or 
something like that).


That was quite a while ago, though, so I don't exactly remember where 
that was.


It could have been in the Terminate or Suspend dialog on a FreeNX 
system. Or it was one of the system configuration menus in KNOPPIX (like 
where you could change network settings or install the system to disk).


Also, googling turned up http://packages.debian.org/squeeze/ssft

Maybe this helps as a starting point for the coders involved?

-Stefan
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Dick Kniep
 

Hi List, 

 
Another way to find out which environment is present is with wmctrl. This 
utitlity gives information on the current window manager and could be used as a 
basis to determine the dialog that is to be shown.

 
Cheers,

DKniep

 
-Oorspronkelijk bericht-
Aan:x2go-dev@lists.berlios.de; 
Van:newsgroups.ma...@stefanbaur.de
Verzonden:ma 13-02-2012 12:01
Onderwerp:Re: [X2Go-Dev] - Dependency for kdialog
Am 13.02.2012 11:02, schrieb Sören Plönnigs:
 is it possible to remove the dependency for kdialog from x2goserver 
 package?

 # grep '\bkdialog\b' x2goserver_3.0.99.10
 ./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
 system(kdialog --error \@line[1]\);

 It's not nice that a bunch of kde packages is needed in a non kde 
 environment.

Disclaimer: I am not one of the coders.

While I'm currently using KDE (and Trinity), I'm absolutely with you 
that this shouldn't be hard-coded.
And I do remember seeing a rather clever hack in a bash script once, 
that tried to figure out which dialog frontend to use (I think it tried 
Gnome, KDE, Xdialog and finally an xterm with regular dialog inside, if 
it detected an X Session, and regular dialog on the console, or 
something like that).

That was quite a while ago, though, so I don't exactly remember where 
that was.

It could have been in the Terminate or Suspend dialog on a FreeNX 
system. Or it was one of the system configuration menus in KNOPPIX (like 
where you could change network settings or install the system to disk).

Also, googling turned up http://packages.debian.org/squeeze/ssft

Maybe this helps as a starting point for the coders involved?

-Stefan
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev






!DSPAM:4f38f4ed15824979378548!
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Moritz Struebe
On 2012-02-13 11:02, Sören Plönnigs wrote:
 Hi,

 is it possible to remove the dependency for kdialog from x2goserver
 package?

 # grep '\bkdialog\b' x2goserver_3.0.99.10
 ./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
 system(kdialog --error \@line[1]\);

What about switching to zenity? It needs GTK, but opposed to KDE, that
should be available on almost any system, shouldn't it?

Cheers
Morty

-- 
Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter)
Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme)
Friedrich-Alexander-Universität Erlangen-Nürnberg
Martensstr. 1
91058 Erlangen

Tel   : +49 9131 85-25419
Fax   : +49 9131 85-28732
eMail : stru...@informatik.uni-erlangen.de
WWW   : http://www4.informatik.uni-erlangen.de/~morty






smime.p7s
Description: S/MIME Kryptografische Unterschrift
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Oliver Burger

Am 13.02.2012 12:03, schrieb newsgroups.ma...@stefanbaur.de:

Am 13.02.2012 11:02, schrieb Sören Plönnigs:

is it possible to remove the dependency for kdialog from x2goserver
package?


And I do remember seeing a rather clever hack in a bash script once,
that tried to figure out which dialog frontend to use (I think it tried
Gnome, KDE, Xdialog and finally an xterm with regular dialog inside, if
it detected an X Session, and regular dialog on the console, or
something like that).
Apart from Xdialog being unmaintained upstream for several years now, 
that's a possibility.


But why not use the libnotify directly? That way you wouldn't need to 
find out, what desktop environment was running.


Oliver
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Mike Gabriel

Hi Morty,

On Mo 13 Feb 2012 13:18:42 CET Moritz Struebe wrote:


On 2012-02-13 11:02, Sören Plönnigs wrote:

Hi,

is it possible to remove the dependency for kdialog from x2goserver
package?

# grep '\bkdialog\b' x2goserver_3.0.99.10
./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
system(kdialog --error \@line[1]\);


What about switching to zenity? It needs GTK, but opposed to KDE, that
should be available on almost any system, shouldn't it?


Zenity is already used for all desktop environments which have a:

  GNOME_DESKTOP_SESSION_ID != 

What we should do is patch the code in a way that the absence of  
zenity and kdialog does not throw an error.


Patches are welcome!

Greets,
Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

pgpcoLmtLy8Oj.pgp
Description: Digitale PGP-Unterschrift
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Mike Gabriel

Hi Sören,

On Mo 13 Feb 2012 11:02:41 CET Sören Plönnigs wrote:


Hi,

is it possible to remove the dependency for kdialog from x2goserver package?

# grep '\bkdialog\b' x2goserver_3.0.99.10
./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
system(kdialog --error \@line[1]\);

It's not nice that a bunch of kde packages is needed in a non kde  
environment.


In our Debian package I cannot see any dependency on kdialog. Do you  
really mean package in the strict sense? Or do you mean, that the  
absence of kdialog throws an error and this should handle differently?


Mike

quote
Package: x2goserver
Architecture: any
Depends:
 ${shlibs:Depends},
 ${misc:Depends},
 x2goagent,
 lsof,
 openssh-client,
 openssh-server,
 libconfig-simple-perl,
 makepasswd,
 libdbd-pg-perl,
 libdbd-sqlite3-perl,
 adduser,
 xauth,
 psmisc,
 net-tools
Recommends:
 sshfs,
 x11-apps,
 x11-session-utils,
 x11-utils,
 x11-xfs-utils,
 x11-xkb-utils,
 x11-xserver-utils,
 xinit,
 x2goserver-extensions (= ${source:Version})
Suggests:
 x2goserver-printing (= ${source:Version}),
 x2goserver-compat (= ${source:Version}),
 x2goserver-xsession (= ${source:Version}),
 x2goserver-pyhoca (= ${source:Version})
Breaks:
 x2goserver-one,
 x2goserver-home,
Replaces:
 x2goserver-one,
 x2goserver-home,
Description: X2Go server daemon scripts
 X2Go is a server based computing environment with
- session resuming
- low bandwith support
- LDAP support
- client side mass storage mounting support
- audio support
- authentication by smartcard and USB stick
 .
 This package contains the main daemon and tools for
 X2Go server-side session administrations.
 .
 The x2goserver package provides full functionality
 for running the X2Go project's legacy X2Go client
 (x2goclient) on the client-side.
 .
 However, if you intend using other client implementations
 of X2Go make sure that you also have X2Go server
 extensions package (x2goserver-extensions) installed.
/quote



--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

pgpr0ZS3FuvRu.pgp
Description: Digitale PGP-Unterschrift
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Sören Plönnigs

Am 13.02.2012 13:47, schrieb Mike Gabriel:

Hi Sören,

On Mo 13 Feb 2012 11:02:41 CET Sören Plönnigs wrote:


Hi,

is it possible to remove the dependency for kdialog from x2goserver 
package?


# grep '\bkdialog\b' x2goserver_3.0.99.10
./x2goserver_3.0.99.10/x2goserver/bin/x2goumount-session:
system(kdialog --error \@line[1]\);

It's not nice that a bunch of kde packages is needed in a non kde 
environment.


In our Debian package I cannot see any dependency on kdialog. Do you 
really mean package in the strict sense? Or do you mean, that the 
absence of kdialog throws an error and this should handle differently?

Hi Mike,

I'm not using Debian but Centos. As Jan Engelhard set up an repository 
on Opensuse Build Service, I wanted to try it out. There were some 
problems with the requirements while trying to install the packages and 
so I checked out the spec file which was used for packaging. In the spec 
file there was a dependency for kdialog which makes no sense in my eyes, 
so I asked Jan and he told me that there is an hardcoded call to kdialog 
in the x2goumount-session script.
In my eyes it should be replaced by some kind of notify call to the 
xsession (I'm not into xorg programming, sorry if I'm getting something 
wrong and this doesn't work). Maybe using which dialog can also work, 
but I think using the notifying system of the window manager is more 
elegant.
By the way, the x2go packages on the build service still have some 
issues. I'm trying to fix them right now and give back the changes to 
Jan. As he is an Suse developer he surely needs more testers for the 
packages for Redhat/Fedora.


Sören



Mike

quote
Package: x2goserver
Architecture: any
Depends:
 ${shlibs:Depends},
 ${misc:Depends},
 x2goagent,
 lsof,
 openssh-client,
 openssh-server,
 libconfig-simple-perl,
 makepasswd,
 libdbd-pg-perl,
 libdbd-sqlite3-perl,
 adduser,
 xauth,
 psmisc,
 net-tools
Recommends:
 sshfs,
 x11-apps,
 x11-session-utils,
 x11-utils,
 x11-xfs-utils,
 x11-xkb-utils,
 x11-xserver-utils,
 xinit,
 x2goserver-extensions (= ${source:Version})
Suggests:
 x2goserver-printing (= ${source:Version}),
 x2goserver-compat (= ${source:Version}),
 x2goserver-xsession (= ${source:Version}),
 x2goserver-pyhoca (= ${source:Version})
Breaks:
 x2goserver-one,
 x2goserver-home,
Replaces:
 x2goserver-one,
 x2goserver-home,
Description: X2Go server daemon scripts
 X2Go is a server based computing environment with
- session resuming
- low bandwith support
- LDAP support
- client side mass storage mounting support
- audio support
- authentication by smartcard and USB stick
 .
 This package contains the main daemon and tools for
 X2Go server-side session administrations.
 .
 The x2goserver package provides full functionality
 for running the X2Go project's legacy X2Go client
 (x2goclient) on the client-side.
 .
 However, if you intend using other client implementations
 of X2Go make sure that you also have X2Go server
 extensions package (x2goserver-extensions) installed.
/quote





___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev



--
=

Sören Plönnigs

Institut für Theoretische Elektrotechnik
Leibniz Universität Hannover
Appelstr. 9A _/_/_/_/_/  _/_/_/_/  _/_/_/_/_/
D-30167 Hannover_/  _/_/
Germany_/  _/_/_/_/
Tel.: +49 511 762 17699   _/  _/_/
Fax : +49 511 762 3204   _/  _/_/_/_/  _/

mailto:ploenn...@tet.uni-hannover.de
http://www.tet.uni-hannover.de/ploennigs_soeren.html




smime.p7s
Description: S/MIME Kryptografische Unterschrift
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Mike Gabriel

Hi Sören,

On Mo 13 Feb 2012 14:06:48 CET Sören Plönnigs wrote:

I'm not using Debian but Centos. As Jan Engelhard set up an  
repository on Opensuse Build Service, I wanted to try it out. There  
were some problems with the requirements while trying to install the  
packages and so I checked out the spec file which was used for  
packaging. In the spec file there was a dependency for kdialog which  
makes no sense in my eyes, so I asked Jan and he told me that there  
is an hardcoded call to kdialog in the x2goumount-session script.
In my eyes it should be replaced by some kind of notify call to the  
xsession (I'm not into xorg programming, sorry if I'm getting  
something wrong and this doesn't work). Maybe using which dialog  
can also work, but I think using the notifying system of the window  
manager is more elegant.
By the way, the x2go packages on the build service still have some  
issues. I'm trying to fix them right now and give back the changes  
to Jan. As he is an Suse developer he surely needs more testers for  
the packages for Redhat/Fedora.


Patch committed...
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=2cffebd0aab22890d25a3f7539068c95087e9a2e

@Jan: please only use those dependencies that we use in the Debian  
package. Please check /debian/control for further info:

http://code.x2go.org/gitweb?p=x2goserver.git;a=blob;f=debian/control

Greets,
Mike



--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

pgpoXBT7hKvkY.pgp
Description: Digitale PGP-Unterschrift
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2Go-Dev] - Dependency for kdialog

2012-02-13 Thread Heinz-M. Graesing
Hi Oliver,

Am 13.02.2012 13:20, schrieb Oliver Burger:
 But why not use the libnotify directly? That way you wouldn't need to
 find out, what desktop environment was running.

as far as I know, libnotify is gnome based only
(http://developer.gnome.org/libnotify/) please tell me if I'm wrong?!

Regards,

Heinz
___
X2Go-Dev mailing list
X2Go-Dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev