Re: Creating a Window on Current Users Desktop





--- On Mon, 11/24/08, Brian <brian bdandemw net> wrote:

> From: Brian <brian bdandemw net>
> Subject: Creating a Window on Current Users Desktop
> To: gtk-list gnome org
> Date: Monday, November 24, 2008, 3:11 AM
> I have an inetd program (in C) which receives a udp and
> creates a process to write a message to the desktop of
> who-ever the current user is. The inetd code is fine but the
> gtk process  fails at gtk_window_new call for a top level
> window.The inetd runs as root. Any suggestions?
> Thanks in advance for any help.

I think you will be suggested to publish you code and the exact code;
I vaguely recollect gtk+ has provisions which disables running it as root
- for security reasons, so you may first want to spawn a process under a
different than root user ID - nobody ?

Try your program first outside the inetd under a non-root user ID.

Regards,
  Sergei.

P.S. I am using gtk+ through Perl bindings, so I'm not an expert.


      


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]