X cannot run programs in the current user's profile

  • Done
  • quality assurance status badge
Details
3 participants
  • Thompson, David
  • 宋文武
  • Ludovic Courtès
Owner
unassigned
Submitted by
Thompson, David
Severity
normal

Debbugs page

Thompson, David wrote 10 years ago
(address . bug-guix@gnu.org)
CAJ=RwfbZJhwYfVP__MtDBuGWUZiwAR7938GEsMCdjZq2+65CTQ@mail.gmail.com
To reproduce, create an operating-system configuration that uses the
slim-service and do not add any additional packages to the base
system, such as xterm.

As an unpriveleged user, run 'guix packge -i xterm'. Then, try to
launch xterm via Window Maker's main menu. It will fail.

- Dave
Ludovic Courtès wrote 10 years ago
(name . Thompson, David)(address . dthompson2@worcester.edu)(address . 19119-done@debbugs.gnu.org)
87h9xtwruo.fsf@gnu.org
I believe this is fixed by 1d18d87.

Let me know if there’s anything wrong.

Thanks!

Ludo’.
Closed
Ludovic Courtès wrote 10 years ago
Re: bug#19119: closed (Re: bug#19119: X cannot run programs in the current user's profile)
(name . 宋文武)(address . iyzsong@gmail.com)(address . 19119@debbugs.gnu.org)
87iohh53ff.fsf@gnu.org
Thinking more about it, the fix in 1d18d87 wasn’t quite right.

I think the right thing would be to run the window manager as a child of
a ‘bash --login’ process, so the whole X session would get environment
variables like a login shell.

WDYT, 宋文武?

Thanks,
Ludo’.
宋文武 wrote 10 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 19119@debbugs.gnu.org)
87388jve1p.fsf@gmail.com
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (7 lines)
> Thinking more about it, the fix in 1d18d87 wasn’t quite right.
>
> I think the right thing would be to run the window manager as a child of
> a ‘bash --login’ process, so the whole X session would get environment
> variables like a login shell.
>
> WDYT, 宋文武?
Agree!

And currently ratposion and windowmaker are hardcoded,
how about make sessions configurable?
Like:
(define %default-sessions
`(("windowmaker" . #~(execl #$windowmaker "/bin/wmaker"))
("ratposion" . #~(execl #$ratposion "/bin/ratposion"))))

(define* (slim-service #:key (sessions %default-sessions)
...
Toggle quote (3 lines)
>
> Thanks,
> Ludo’.
Ludovic Courtès wrote 10 years ago
(name . 宋文武)(address . iyzsong@gmail.com)(address . 19119@debbugs.gnu.org)
87oar7o9ml.fsf@gnu.org
宋文武 <iyzsong@gmail.com> skribis:

Toggle quote (11 lines)
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Thinking more about it, the fix in 1d18d87 wasn’t quite right.
>>
>> I think the right thing would be to run the window manager as a child of
>> a ‘bash --login’ process, so the whole X session would get environment
>> variables like a login shell.
>>
>> WDYT, 宋文武?
> Agree!

Commit b2bd7c2 does that. Let me know if you think of adjustments to make!

Ludo’.

PS: I’ll reply to the other topic on guix-devel.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 19119@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 19119
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help