Re: gksu: Couldn't set environment variable...
On Fri, 25 Nov 2011 01:42:25 +0700, Sthu Deus wrote:
> Thank You for Your time and answer, Camaleón:
>
>>> I can not run two applications w/ gksu:
>>>
>>> chromium and
>>>
>>> qbittorrent
>>>
>>> w/ the error:
>>>
>>> Couldn't set environment variable...
>>
>>Is it only happening with just that two programs?
>
> For a new user it works too, but for the old one - all work except these
> two. I have searched through dir.s and files that were created for the
> new user (its home dir. was empty and did remove the appropriate dir.s
> in the home dir. of the problematic user - did not solve the problem.
>
> The dir.s were, IIRC:
>
> .dbus
> .gconf
> .gconfd
>
> Any other dir/file suggestion?
You can try to reboot. Strange things can happen when gnome is updated
and some files are still in use.
>>Try adding the "debug" parameter:
>>
>>gksu -d chromium
>>gksu -d qbittorrent
>
> $ /usr/bin/gksu -d -u usrname /usr/bin/chromium
May I ask why are you giving the full path to both binaries? :-?
Also, try to run gksu as root user.
(...)
> [23477:23477:49752580053:FATAL:browser_main.cc(1362)] Check failed:
> PathService::Get(chrome::DIR_USER_DATA, &user_data_dir). Must be able to
> get user data directory! Aborted
(...)
> $ /usr/bin/gksu -d -u usrname /usr/bin/qbittorrent
(..)
> buf: -gksu: waiting Couldn't set environment variable...
>
>
> So, both can not get access to the required user's environment - for
> some reason.
Let's see what are the perms of the user "~/.config" directory:
ls -la | grep config
Greetings,
--
Camaleón
Reply to: