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

Re: gksu: Couldn't set environment variable...



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?

>> launching so:
>> 
>> /usr/bin/gksu -u usrname /usr/bin/qbittorrent
>> 
>> or
>> 
>> /usr/bin/gksu -u usrname /usr/bin/chromium
>> 
>> Others seems to run OK. I have searched for the error through web but
>> nothing useful found for me.
>> 
>> How I can run it, finally?
>
>Try adding the "debug" parameter:
>
>gksu -d chromium
>gksu -d qbittorrent

$ /usr/bin/gksu -d -u usrname /usr/bin/chromium
xauth: -13e165d7bacfc8c77079659f0ceaf146
-
display: -:0-
final xauth: -13e165d7bacfc8c77079659f0ceaf146
-
final display: -:0-
STARTUP_ID: gksu/|usr|bin|chromium/23458-0-dark_TIME0
gksu_context_run: buf: -Password: -
password from keyring found
DEBUG (run:after-pass) buf: -Password: -
-EBUG (run:post-after-pass) buf: -
-EBUG (run:post-after-pass) buf: -gksu: waiting
-EBUG (gksu: waiting) buf: -gksu: waiting
[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
xauth: -13e165d7bacfc8c77079659f0ceaf146
-
display: -:0-
final xauth: -13e165d7bacfc8c77079659f0ceaf146
-
final display: -:0-
STARTUP_ID: gksu/|usr|bin|qbittorrent/23541-0-dark_TIME0
gksu_context_run: buf: -Password: -
password from keyring found
DEBUG (run:after-pass) buf: -Password: -
-EBUG (run:post-after-pass) buf: -
-EBUG (run:post-after-pass) buf: -gksu: waiting
-EBUG (gksu: waiting) buf: -gksu: waiting
Couldn't set environment variable...


So, both can not get  access to the required user's environment - for
some reason.


Reply to: