Mailinglist Archive: opensuse (1552 mails)
| < Previous | Next > |
Re: [opensuse] gtk 64-bit problem
- From: Anders Johansson <ajohansson@xxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 23:13:16 +0200
- Message-id: <200707112313.16798.ajohansson@xxxxxxxxxxx>
On Wednesday 11 July 2007 22:40:40 Anders Johansson wrote:
> It also shows that it happens immediately after failing to read something
> from dbus
>
> This should be solvable
Well, I have the reason, but not a solution
root contacts the user's dbus session (since you did an su, instead of su -,
the environment variables are still there).
dbus then does a getuid(), sees that someone other than the owner is trying to
talk to it, and proceeds to ignore it
This is why it's hanging. Bad design in gtk if you ask me
But the workaround would be to go to root using su -, and then launch a new
dbus using
eval `dbus-launch --auto-syntax`
After that, your gtk app will work as root as well as a user
...and all this just using strace :)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> It also shows that it happens immediately after failing to read something
> from dbus
>
> This should be solvable
Well, I have the reason, but not a solution
root contacts the user's dbus session (since you did an su, instead of su -,
the environment variables are still there).
dbus then does a getuid(), sees that someone other than the owner is trying to
talk to it, and proceeds to ignore it
This is why it's hanging. Bad design in gtk if you ask me
But the workaround would be to go to root using su -, and then launch a new
dbus using
eval `dbus-launch --auto-syntax`
After that, your gtk app will work as root as well as a user
...and all this just using strace :)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |