Installing window manager from developer's package - /etc/X11/wmsession.d/ - Mandriva

This is a discussion on Installing window manager from developer's package - /etc/X11/wmsession.d/ - Mandriva ; Occasionally, I try to install a new window manager from source or from the developer's package. I then add an appropriate file in /etc/X11/wmsession.d, but it doesn't show up on the menu. Recently, I installed the latest vesion of Xfce ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Installing window manager from developer's package - /etc/X11/wmsession.d/

  1. Installing window manager from developer's package - /etc/X11/wmsession.d/

    Occasionally, I try to install a new window manager from source or from the
    developer's package. I then add an appropriate file
    in /etc/X11/wmsession.d, but it doesn't show up on the menu.

    Recently, I installed the latest vesion of Xfce from a *.run package
    (because the RPM descriptions were a bit ambiguous.) It installed a
    desktop file in the kdm directory, and is detected for selection and starts
    OK without any file in wmsession.d.

    What is the purpose of those files? From what I could read in the Mandriva
    forums, they are an attempt to have a standard procedure among the varying
    methods used by developers, but the idea doesn't seem to work. I read
    once that the initial number must be different from all others, but I have
    three on 16, evilwm, fluxbox and ratpoison. Only fluxbox, from Mandriva
    RPMs, was a separate desired installation. The others are there,
    presumably from the "Other Desktops" RPM.

    Doug.

  2. Re: Installing window manager from developer's package -/etc/X11/wmsession.d/

    On Wed, 20 Feb 2008 22:55:22 -0500, Doug Laidlaw wrote:

    > Occasionally, I try to install a new window manager from source or from the
    > developer's package. I then add an appropriate file
    > in /etc/X11/wmsession.d, but it doesn't show up on the menu.


    By "show up on the menu", Do you you mean Xtart, or KDM?
    >
    > Recently, I installed the latest vesion of Xfce from a *.run package
    > (because the RPM descriptions were a bit ambiguous.) It installed a
    > desktop file in the kdm directory, and is detected for selection and starts
    > OK without any file in wmsession.d.


    Which kdm directory? /etc/kde/kdm? Check in /usr/share/xsessions, which
    is one of the other places kdm looks for window managers to choose from.

    > What is the purpose of those files? From what I could read in the Mandriva
    > forums, they are an attempt to have a standard procedure among the varying
    > methods used by developers, but the idea doesn't seem to work. I read


    Not all of the developers are following the changed standards.

    In /etc/X11/wmsession.d, every file that started with the same two digit
    number, as another, I simply renamed to start with a unique number. I
    have to watch for updates installing a file with the old number, but this
    makes all of the options available via Xtart. (I don't use run level 5).

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  3. Re: Installing window manager from developer's package - /etc/X11/wmsession.d/

    David W. Hodgins wrote:

    > On Wed, 20 Feb 2008 22:55:22 -0500, Doug Laidlaw
    > wrote:
    >
    >> Occasionally, I try to install a new window manager from source or from
    >> the
    >> developer's package. I then add an appropriate file
    >> in /etc/X11/wmsession.d, but it doesn't show up on the menu.

    >
    > By "show up on the menu", Do you you mean Xtart, or KDM?
    >>
    >> Recently, I installed the latest vesion of Xfce from a *.run package
    >> (because the RPM descriptions were a bit ambiguous.) It installed a
    >> desktop file in the kdm directory, and is detected for selection and
    >> starts OK without any file in wmsession.d.

    >
    > Which kdm directory? /etc/kde/kdm? Check in /usr/share/xsessions, which
    > is one of the other places kdm looks for window managers to choose from.
    >
    >> What is the purpose of those files? From what I could read in the
    >> Mandriva forums, they are an attempt to have a standard procedure among
    >> the varying
    >> methods used by developers, but the idea doesn't seem to work. I read

    >
    > Not all of the developers are following the changed standards.
    >
    > In /etc/X11/wmsession.d, every file that started with the same two digit
    > number, as another, I simply renamed to start with a unique number. I
    > have to watch for updates installing a file with the old number, but this
    > makes all of the options available via Xtart. (I don't use run level 5).
    >
    > Regards, Dave Hodgins
    >

    By "show up on the menu", I meant the standard login screen, which allows me
    to login and select my type of session. The menu is a right-click at the
    bottom.

    The xfce44.desktop is in /usr/share/apps/kdm/sessions and
    in /usr/share/xsessions

    Doug.

  4. Re: Installing window manager from developer's package -/etc/X11/wmsession.d/

    On Fri, 22 Feb 2008 01:54:28 -0500, Doug Laidlaw wrote:

    > The xfce44.desktop is in /usr/share/apps/kdm/sessions and
    > in /usr/share/xsessions


    One of the benefits of using the Mandriva rpms to install the
    various window managers, is that they all execute a bash script
    to start the wm, which ensures ~/.bash_profile is executed, on
    login.

    If the wm startup is executing a .elf program, and you're using
    run level 5 (i.e. kdm, gdm, or xdm), then the ~/.bash_profile will
    not be executed.

    All of the window managers I've installed, I've done using the
    Mandriva rpms. Although I had to rename a few files, to avoid
    number conflicts, I now have ...
    $ ll /etc/X11/wmsession.d/
    -rw-r--r-- 1 root root 117 2008-02-18 19:39 01KDE
    -rw-r--r-- 1 root root 129 2007-09-21 06:39 02GNOME
    -rw-r--r-- 1 root root 212 2007-11-25 10:09 03WindowMaker
    -rw-r--r-- 1 root root 101 2007-08-18 07:21 04enlightenment
    -rw-r--r-- 1 root root 136 2007-09-08 09:25 05blackbox
    -rwxr-xr-x 1 root root 141 2008-02-17 20:39 06XFce4*
    -rw-r--r-- 1 root root 131 2007-08-10 18:51 07IceWM
    -rw-r--r-- 1 root root 124 2007-07-31 02:20 08Sawfish
    -rw-r--r-- 1 root root 134 2008-02-15 17:20 10KDE4
    -rw-r--r-- 1 root root 93 2005-11-15 23:36 13vtwm
    -rw-r--r-- 1 root root 130 2006-06-30 16:40 14qvwm
    -rw-r--r-- 1 root root 122 2006-11-30 19:03 15AfterStep
    -rwxr-xr-x 1 root root 147 2007-10-24 05:08 16fluxbox*
    -rw-r--r-- 1 root root 131 2007-04-17 10:48 17Rox
    -rw-r--r-- 1 root root 99 2006-07-26 18:28 19wmii
    -rw-r--r-- 1 root root 91 2007-08-31 09:35 23E17
    -rw-r--r-- 1 root root 104 2006-07-03 12:04 25wmx
    -rw-r--r-- 1 root root 118 2007-10-05 11:16 29drak3d
    -rw-r--r-- 1 root root 95 2006-06-16 05:52 30pekwm
    -rw-r--r-- 1 root root 99 2007-07-18 15:09 51evilwm
    -rw-r--r-- 1 root root 111 2007-05-22 10:58 52ratpoison
    -rw-r--r-- 1 root root 131 2007-07-02 17:36 53EDE
    -rw-r--r-- 1 root root 166 2007-08-06 09:03 54openbox
    -rw-r--r-- 1 root root 123 2005-03-13 12:34 60Fvwm1

    I've only done a limited amount of testing, with each, and normally
    stick with KDE.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  5. Re: Installing window manager from developer's package - /etc/X11/wmsession.d/

    David W. Hodgins wrote:

    > On Fri, 22 Feb 2008 01:54:28 -0500, Doug Laidlaw
    > wrote:
    >
    >> The xfce44.desktop is in /usr/share/apps/kdm/sessions and
    >> in /usr/share/xsessions

    >
    > One of the benefits of using the Mandriva rpms to install the
    > various window managers, is that they all execute a bash script
    > to start the wm, which ensures ~/.bash_profile is executed, on
    > login.
    >
    > If the wm startup is executing a .elf program, and you're using
    > run level 5 (i.e. kdm, gdm, or xdm), then the ~/.bash_profile will
    > not be executed.
    >
    > All of the window managers I've installed, I've done using the
    > Mandriva rpms. Although I had to rename a few files, to avoid
    > number conflicts, I now have ...
    > $ ll /etc/X11/wmsession.d/
    > -rw-r--r-- 1 root root 117 2008-02-18 19:39 01KDE
    > -rw-r--r-- 1 root root 129 2007-09-21 06:39 02GNOME
    > -rw-r--r-- 1 root root 212 2007-11-25 10:09 03WindowMaker
    > -rw-r--r-- 1 root root 101 2007-08-18 07:21 04enlightenment
    > -rw-r--r-- 1 root root 136 2007-09-08 09:25 05blackbox
    > -rwxr-xr-x 1 root root 141 2008-02-17 20:39 06XFce4*
    > -rw-r--r-- 1 root root 131 2007-08-10 18:51 07IceWM
    > -rw-r--r-- 1 root root 124 2007-07-31 02:20 08Sawfish
    > -rw-r--r-- 1 root root 134 2008-02-15 17:20 10KDE4
    > -rw-r--r-- 1 root root 93 2005-11-15 23:36 13vtwm
    > -rw-r--r-- 1 root root 130 2006-06-30 16:40 14qvwm
    > -rw-r--r-- 1 root root 122 2006-11-30 19:03 15AfterStep
    > -rwxr-xr-x 1 root root 147 2007-10-24 05:08 16fluxbox*
    > -rw-r--r-- 1 root root 131 2007-04-17 10:48 17Rox
    > -rw-r--r-- 1 root root 99 2006-07-26 18:28 19wmii
    > -rw-r--r-- 1 root root 91 2007-08-31 09:35 23E17
    > -rw-r--r-- 1 root root 104 2006-07-03 12:04 25wmx
    > -rw-r--r-- 1 root root 118 2007-10-05 11:16 29drak3d
    > -rw-r--r-- 1 root root 95 2006-06-16 05:52 30pekwm
    > -rw-r--r-- 1 root root 99 2007-07-18 15:09 51evilwm
    > -rw-r--r-- 1 root root 111 2007-05-22 10:58 52ratpoison
    > -rw-r--r-- 1 root root 131 2007-07-02 17:36 53EDE
    > -rw-r--r-- 1 root root 166 2007-08-06 09:03 54openbox
    > -rw-r--r-- 1 root root 123 2005-03-13 12:34 60Fvwm1
    >
    > I've only done a limited amount of testing, with each, and normally
    > stick with KDE.
    >
    > Regards, Dave Hodgins
    >

    That issue about .bash_profile comes in after starting the wm. I assume
    that if it is not read, I will have a strange login prompt. Must see...
    No, the prompt is O.K. and a script called from .bashrc runs in the terminal
    when I open it.

    I am probably too strongly wedded to KDE anyway.

    Doug.

  6. Re: Installing window manager from developer's package -/etc/X11/wmsession.d/

    On Sat, 23 Feb 2008 08:39:38 -0500, Doug Laidlaw wrote:

    > That issue about .bash_profile comes in after starting the wm. I assume
    > that if it is not read, I will have a strange login prompt. Must see...


    The .bash_profile is started after you select the wm, provided the wm
    is started by a bash script.

    Typically, the .bash_profile is used to add ~/bin/ to the path, execute
    keychain (if appropriate files are found), and anything else the user
    wants done once, at login (as opposed to .bashrc, which is executed
    everytime you start a shell).

    For example, I have my .bash_profile mount my luks encrypted data filesystem,
    if it isn't already mounted.

    If the selected wm is started by an executable, rather then a bash script,
    and the user is using a display manager (i.e. run level 5), then .bash_profile
    never gets executed. In my case, that would mean my data filesystem would not
    be available, which includes my email, an other data, accessed by symlinks in
    my home/dave directory.

    This used to be a problem, but was fixed by Mandriva, by having all of the
    wm startup selections use bash scripts, instead of directly calling the
    wm executable. By using a bash script to execute the wm, .bash_profile gets
    run before the wm is actually started.

    If you install a wm using a method other then a Mandriva supplied rpm, you
    have a good chance of running into the problem again.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

+ Reply to Thread