Opened 19 years ago

Closed 18 years ago

Last modified 10 years ago

#1638 closed defect (fixed)

Fluxbox, Xfce and gdm

Reported by: b3nt@… Owned by: andy@…
Priority: high Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

The Fluxbox page in BLFS doesn't tell you how to add Fluxbox to the menu of sessions offered by Gnomes Display manager. This probably works for KDE too but I don't have it installed so I can't check. For gdm, all that's needed is to create a simple .desktop file like this

cat > /usr/share/xsessions/fluxbox.desktop << "EOF [Desktop Entry] Encoding=UTF-8 Name=Fluxbox Comment=This session logs you into Fluxbox Exec=startfluxbox Type=Application EOF

Attachments (3)

fluxbox.xml.diff (1.0 KB ) - added by b3nt@… 19 years ago.
patch to add a fluxbox.desktop file
fluxbox.xml.2.diff (2.0 KB ) - added by b3nt@… 19 years ago.
tweaked patch
fluxbox-xfce.patch (3.1 KB ) - added by b3nt@… 19 years ago.
Add .desktop files for fluxbox and xfce

Download all attachments as: .zip

Change History (15)

comment:1 by chris@…, 19 years ago

I am not sure why it is needed to explain that. Is adding fluxbox, specifically, to gdm any different than adding KDE, sawfish, or anything else to gdm? If not, then there doesn't need to be a specific instruction just for fluxbox.

Besides, if anything, this instruction should be on the gdm page.

comment:2 by b3nt@…, 19 years ago

Well the reason why is simply to make it easier to choose between sessions. It may be best to add a note to the gdm page because the situation is the same with xfce. To log in to xfce from the gdm screen you need to create /usr/share/xsessions/xfce.desktop

cat > /usr/share/xsessions/xfce.desktop << "EOF [Desktop Entry] Encoding=UTF-8 Name=Xfce Comment=Use this session to run Xfce 4.2 as your desktop environment Exec=startxfce4 Icon=/usr/share/pixmaps/xfce4_xicon1.png Type=Application EOF

I think it would be best to put that on the xfce page. To me, it's part of configuring that package to fit in with what you already have installed

comment:3 by b3nt@…, 19 years ago

Summary: Fluxbox and gdmFluxbox, Xfce and gdm

by b3nt@…, 19 years ago

Attachment: fluxbox.xml.diff added

patch to add a fluxbox.desktop file

comment:4 by b3nt@…, 19 years ago

attachments.description: patch to add a fluxbox.desktop filepatch to add a fluxbox.desktop file and bump the version to 0.9.14

(From update of attachment 130) diff -Naur BOOK-orig/general.ent BOOK/general.ent --- BOOK-orig/general.ent 2005-10-21 20:12:52.000000000 +0100 +++ BOOK/general.ent 2005-10-22 17:38:26.000000000 +0100 @@ -335,7 +335,7 @@

<!-- Chapter 27 --> <!ENTITY sawfish-version "1.3">

-<!ENTITY fluxbox-version "0.9.13"> +<!ENTITY fluxbox-version "0.9.14">

<!ENTITY metacity-version "2.12.1"> <!ENTITY xfce-version "4.2.2">

diff -Naur BOOK-orig/x/wm/fluxbox.xml BOOK/x/wm/fluxbox.xml --- BOOK-orig/x/wm/fluxbox.xml 2005-10-21 20:12:34.000000000 +0100 +++ BOOK/x/wm/fluxbox.xml 2005-10-22 17:46:46.000000000 +0100 @@ -6,8 +6,8 @@

<!ENTITY fluxbox-download-http

"http://prdownloads.sourceforge.net/fluxbox/fluxbox-&fluxbox-version;.tar.bz2">

<!ENTITY fluxbox-download-ftp " ">

  • <!ENTITY fluxbox-md5sum "f9b7b3c3b8e1e9ce3449601b238d4fba">
  • <!ENTITY fluxbox-size "649 KB">

+ <!ENTITY fluxbox-md5sum "7641aaea532841e103e9705bb5b98f62"> + <!ENTITY fluxbox-size "657 KB">

<!ENTITY fluxbox-buildsize "47.7 MB"> <!ENTITY fluxbox-time "1.2 SBU">

]>

@@ -125,6 +125,22 @@

<literal>startfluxbox</literal> EOF</userinput></screen>

+ <para>Or alternatively, if you use a login manager like + <xref linkend="gdm"/> or <application>kdm</application> and would + like to be able to choose <application>Fluxbox</application> at the login + prompt, create a <filename>fluxbox.desktop</filename> file like this</para> + + <para>As <systemitem class="username">root</systemitem>:</para> + +<screen><userinput>cat &gt;&gt; /usr/share/xsessions/fluxbox.desktop &lt;&lt; "EOF" +<literal>[Desktop Entry]</literal> +<literal>Encoding=UTF-8</literal> +<literal>Name=Fluxbox</literal> +<literal>Comment=This session logs you into Fluxbox</literal> +<literal>Exec=startfluxbox</literal> +<literal>Type=Application</literal> +EOF</userinput></screen> +

<para>Now create the <application>Fluxbox</application> configuration files:</para>

comment:5 by b3nt@…, 19 years ago

(From update of attachment 130) diff -Naur BOOK-orig/general.ent BOOK/general.ent --- BOOK-orig/general.ent 2005-10-21 20:12:52.000000000 +0100 +++ BOOK/general.ent 2005-10-22 17:38:26.000000000 +0100 @@ -335,7 +335,7 @@

<!-- Chapter 27 --> <!ENTITY sawfish-version "1.3">

-<!ENTITY fluxbox-version "0.9.13"> +<!ENTITY fluxbox-version "0.9.14">

<!ENTITY metacity-version "2.12.1"> <!ENTITY xfce-version "4.2.2">

diff -Naur BOOK-orig/x/wm/fluxbox.xml BOOK/x/wm/fluxbox.xml --- BOOK-orig/x/wm/fluxbox.xml 2005-10-21 20:12:34.000000000 +0100 +++ BOOK/x/wm/fluxbox.xml 2005-10-22 17:46:46.000000000 +0100 @@ -6,8 +6,8 @@

<!ENTITY fluxbox-download-http

"http://prdownloads.sourceforge.net/fluxbox/fluxbox-&fluxbox-version;.tar.bz2">

<!ENTITY fluxbox-download-ftp " ">

  • <!ENTITY fluxbox-md5sum "f9b7b3c3b8e1e9ce3449601b238d4fba">
  • <!ENTITY fluxbox-size "649 KB">

+ <!ENTITY fluxbox-md5sum "7641aaea532841e103e9705bb5b98f62"> + <!ENTITY fluxbox-size "657 KB">

<!ENTITY fluxbox-buildsize "47.7 MB"> <!ENTITY fluxbox-time "1.2 SBU">

]>

@@ -125,6 +125,22 @@

<literal>startfluxbox</literal> EOF</userinput></screen>

+ <para>Or alternatively, if you use a login manager like + <xref linkend="gdm"/> or <application>kdm</application> and would + like to be able to choose <application>Fluxbox</application> at the login + prompt, create a <filename>fluxbox.desktop</filename> file like this</para> + + <para>As <systemitem class="username">root</systemitem>:</para> + +<screen><userinput>cat &gt;&gt; /usr/share/xsessions/fluxbox.desktop &lt;&lt; "EOF" +<literal>[Desktop Entry]</literal> +<literal>Encoding=UTF-8</literal> +<literal>Name=Fluxbox</literal> +<literal>Comment=This session logs you into Fluxbox</literal> +<literal>Exec=startfluxbox</literal> +<literal>Type=Application</literal> +EOF</userinput></screen> +

<para>Now create the <application>Fluxbox</application> configuration files:</para>

comment:6 by b3nt@…, 19 years ago

attachments.description: patch to add a fluxbox.desktop file and bump the version to 0.9.14patch to add a fluxbox.desktop file

by b3nt@…, 19 years ago

Attachment: fluxbox.xml.2.diff added

tweaked patch

by b3nt@…, 19 years ago

Attachment: fluxbox-xfce.patch added

Add .desktop files for fluxbox and xfce

comment:7 by ttrepl@…, 19 years ago

(fluxbox)

Hi, I had quite heavy trouble with 0.9.14. I had setup a new LFS system and than installed several other packages, finally Fluxbox-0.9.14 (so there was no 0.9.13 previously installed). First of all, i had to symlink fbsetroot to /usr/bin/bsetroot cause it isnt there (and this symlink seems to solve this). What i not got fixed is that every style (e.g. MerleyKay) where fonts are specified, shows empty menues. Reducing a string like

menu.title.font: -*-lucida-bold-r-*-*-*-100-*-*-*-*-*-*

to

menu.title.font: lucida-10

shows the menue title. All in all, i downgraded to 0.9.13 and fluxbox works fine again.

Well, I'm not quite good in X and fonts and so on - so excuse me if this all is only noise...

cu, Moody

comment:8 by chris@…, 19 years ago

(In reply to comment #8)

(fluxbox)

Hi, I had quite heavy trouble with 0.9.14. I had setup a new LFS system and than installed several other packages, finally Fluxbox-0.9.14 (so there was no 0.9.13 previously installed). First of all, i had to symlink fbsetroot to /usr/bin/bsetroot cause it isnt there (and this symlink seems to solve this). What i not got fixed is that every style (e.g. MerleyKay) where fonts are specified, shows empty menues. Reducing a string like

menu.title.font: -*-lucida-bold-r-*-*-*-100-*-*-*-*-*-*

to

menu.title.font: lucida-10

shows the menue title. All in all, i downgraded to 0.9.13 and fluxbox works fine again.

Well, I'm not quite good in X and fonts and so on - so excuse me if this all is only noise...

cu, Moody

I just installed fluxbox 0.9.14 (new installation also - didn't install over top of 0.9.13). All the styles work fine for me, though of course I did have to symlink bsetroot ---> fbsetroot. BTW this doesn't have anything to do with the bug's topic, so please send any more messages on this topic to blfs-support.

comment:9 by Randy McMurchy, 18 years ago

rep_platform: PCAll
Version: ~CVSa-SVN

Added a note to the GDM instructions to use the .desktop file created for the D-BUS GNOME session as an example of how to create additional .desktop files for any other desired items on the session selection menu.

comment:10 by andy@…, 18 years ago

Owner: changed from blfs-book@… to andy@…

comment:11 by andy@…, 18 years ago

Resolution: fixed
Status: newclosed

comment:12 by bdubbs@…, 10 years ago

Milestone: old

Milestone old deleted

Note: See TracTickets for help on using tickets.