Re: gksu: Couldn't set environment variable...
Thank You for Your time and answer, Camaleón:
>So why don't you just run...
>
>gksu -d chromium
>gksu -d qbittorrent
>
>And tell us what happens? :-)
$ /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...
As I have posted earlier. :o)
>Okay, run "ls -la .config/*/" so we can see what's in there...
Hmm, alright:
.config/clipit/:
total 3
drwxr-xr-x 2 sthu sthu 1024 Nov 29 15:57 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
-rw-r--r-- 1 sthu sthu 409 Nov 29 15:57 clipitrc
.config/enchant/:
total 2
drwx------ 2 sthu sthu 1024 Oct 23 01:47 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
-rw-r--r-- 1 sthu sthu 0 Oct 23 01:47 en_US.dic
-rw-r--r-- 1 sthu sthu 0 Oct 23 01:47 en_US.exc
.config/geeqie/:
total 29
drwxr-xr-x 2 sthu sthu 1024 Nov 27 21:43 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
-rw------- 1 sthu sthu 13262 Nov 27 21:43 accels
-rw------- 1 sthu sthu 13267 Nov 27 21:43 geeqierc.xml
-rw------- 1 sthu sthu 926 Nov 27 21:43 history
.config/libfm/:
total 3
drwx------ 2 sthu sthu 1024 Oct 21 15:10 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
-rw-r--r-- 1 sthu sthu 239 Oct 21 15:10 libfm.conf
.config/lxpanel/:
total 4
drwx------ 4 sthu sthu 1024 Nov 15 01:56 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
drwx------ 3 sthu sthu 1024 Nov 15 01:56 default
drwx------ 3 sthu sthu 1024 Oct 21 15:10 LXDE
.config/lxsession/:
total 3
drwxr-xr-x 3 sthu sthu 1024 Oct 21 15:16 .
drwx------ 11 sthu sthu 1024 Nov 25
00:33 .. drwxr-xr-x 2 sthu sthu 1024 Nov 28 13:42
LXDE
.config/openbox/:
total 31
drwxr-xr-x 2 sthu sthu 1024 Nov 24
13:14 . drwx------ 11 sthu sthu 1024 Nov 25
00:33 .. -rw-r--r-- 1 sthu sthu 28877 Nov 24 13:14
lxde-rc.xml
.config/pcmanfm/:
total 3
drwxr-xr-x 3 sthu sthu 1024 Oct 21 15:01 .
drwx------ 11 sthu sthu 1024 Nov 25 00:33 ..
drwxr-xr-x 2 sthu sthu 1024 Nov 27 22:41 LXDE
>Then find where are those applications storing the configuration data,
>it has to be somewhere under the user's profile.
That's the problem - it does not create any other dir.(s)...
>> Look, as the newuser can run the 2 app.s for target user, is it
>> possible such a trick:
>>
>> /usr/bin/gksu -u newuser /usr/bin/gksu -u
>> target_user /usr/bin/qbittorrent
>>
>> ? :)
>
>What a mess!
Yes, and most - the life on Earth.
>It should be just fine with "gksu -l newuser qbittorrent"
This calls for root privileges - I would not run those this way.
>("man gksu" for additional parameters to keep/discard the current user
>environmental variables)
It has not much to choose from. Seems nothing valuable.
Well. Please, do not waste too much of Your time on me - I gave my
question because I thought people use gksu a lot and easily would guess
what's wrong w/ my configuration, but turns out we are looking for
solution instead of correction of wrong configuration - so we can end
up here and will try to make a work around myself - for so it seems me
to be as the answer.
Having said that, I want now simply to drop one of
my tabs in console - to drop the multi message I have in it - as for now
I have to run those 2 app.s from terminal (sux-ed to) of the target
user.
Reply to: