Results 1 to 5 of 5

Thread: Display managers don't have /usr/bin in the path?

  1. #1

    Post Display managers don't have /usr/bin in the path?

    I decided to install Tumbleweed after some years with Debian, and I saw that GDM, KDM, and SDDM couldn't start GNOME and KDE. It took me a while to find the reason; it's quite strange, and I thought it would be a good idea to post here.
    Display managers take information about the available sessions from a list of *.desktop files in the directory /usr/share/xsessions. This, for example, is the gnome.desktop file:

    Code:
    [Desktop Entry]
    X-SuSE-translate=true
    Encoding=UTF-8
    Type=XSession
    Exec=gnome
    TryExec=gnome
    Name=GNOME
    DesktopNames=GNOME
    Comment=The GNU Network Object Model Environment. A complete, free and easy-to-use desktop environment
    This doesn't work. This, on the other side, works:

    Code:
    [Desktop Entry]
    X-SuSE-translate=true
    Encoding=UTF-8
    Type=XSession
    Exec=/usr/bin/gnome
    TryExec=/usr/bin/gnome
    Name=GNOME
    DesktopNames=GNOME
    Comment=The GNU Network Object Model Environment. A complete, free and easy-to-use desktop environment
    So it seems that the display managers don't see files in /usr/bin. Very confusing.
    Any idea?

  2. #2

    Default Re: Display managers don't have /usr/bin in the path?

    Quote Originally Posted by go4linux View Post
    So it seems that the display managers don't see files in /usr/bin. Very confusing.
    Yes, that's strange indeed.
    It works fine here and probably on most other users' systems...

    How did you install? Did you format the root partition?
    How did you switch display managers?

    Did you keep your home directory?
    There might be some user-specific startup script that deletes the PATH or something like this.
    IOW, try a fresh user account.
    Last edited by wolfi323; 01-Mar-2016 at 05:05.

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,373
    Blog Entries
    3

    Default Re: Display managers don't have /usr/bin in the path?

    Did you mess with the shell startup files ("/etc/bash.bashrc", "/etc/profile" and similar)?

    I'm guessing that $PATH is wrongly set at X startup.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4

    Default Re: Display managers don't have /usr/bin in the path?

    Quote Originally Posted by wolfi323 View Post
    How did you install? Did you format the root partition?
    That was the intention, yes. Actually I format all the partitions I use: root, boot, EFI

    Quote Originally Posted by wolfi323 View Post
    How did you switch display managers?
    Yast and edit of /etc/sysconfig/displaymanagers

    Quote Originally Posted by wolfi323 View Post
    Did you keep your home directory?
    no, wiped out by the format of root

    Quote Originally Posted by wolfi323 View Post
    There might be some user-specific startup script that deletes the PATH or something like this.
    IOW, try a fresh user account.
    starting from .xsession (via XDM or KDM custom session) is actually the only thing that seems to work correctly. My user account should be fine. The impression is that it really is in the display manager

    Quote Originally Posted by nrickert View Post
    Did you mess with the shell startup files ("/etc/bash.bashrc", "/etc/profile" and similar)?
    definitely not.

    Quote Originally Posted by nrickert View Post
    I'm guessing that $PATH is wrongly set at X startup.
    yes, that's my feeling, but I wouldn't know how. I'll see if I can investigate it further. It's getting a bit tough though.

    Thanks for the answers

  5. #5

    Default Re: Display managers don't have /usr/bin in the path?

    Very annoyingly it seems to work now, and I don't know why. I must have done something stupid somewhere.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •