[suggest] icewm.spec tweaks

Troy Dawson dawson at fnal.gov
Wed Jun 8 17:56:28 CEST 2005


Howdy,
Here is one thing that we do to our icewm here that allows it to be on 
the list of desktops in the GDM session list, as well as the switchdesk 
list.  This is a diff against the latest icewm 1.2.20 spec file that I 
pulled out of rpmforge.

-----------------
# diff -u icewm.spec icewm.new.spec
--- icewm.spec  2005-06-08 09:56:49.627628472 -0500
+++ icewm.new.spec      2005-06-08 10:45:44.244498896 -0500
@@ -13,7 +13,7 @@
  Summary: Fast and small X11 window manager
  Name: icewm
  Version: 1.2.20
-Release: 1
+Release: 2
  License: LGPL
  Group: User Interface/Desktops
  URL: http://www.icewm.org/
@@ -56,6 +56,20 @@

  %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/icewm/

+# Put icewm in the switchdesk listings
+mkdir -p %{buildroot}%{_datadir}/apps/switchdesk
+cat > %{buildroot}%{_datadir}/apps/switchdesk/Xclients.%{name} << EOF
+#!/bin/sh
+exec %{_bindir}/%{name}
+EOF
+
+# Put icewm in the GDM sessions listings.
+mkdir -p %{buildroot}/etc/X11/gdm/Sessions
+cat > %{buildroot}/etc/X11/gdm/Sessions/Icewm << EOF
+#!/bin/sh
+exec /etc/X11/xdm/Xsession %{name}
+EOF
+
  %clean
  %{__rm} -rf %{buildroot}

@@ -70,8 +84,13 @@
  %config(noreplace) %{_sysconfdir}/icewm/
  %{_bindir}/ice*
  %{_datadir}/icewm/
+%attr(755, root, root) %{_datadir}/apps/switchdesk/Xclients.%{name}
+%attr(755, root, root) /etc/X11/gdm/Sessions/Icewm

  %changelog
+* Wed June 08 2005 Troy Dawson <dawson at fnal.gov> - 1.2.20-2
+- Added files for icewm to work with switchdesk and GDM
+
  * Tue Jan 11 2005 Dag Wieers <dag at wieers.com> - 1.2.20-1
  - Updated to release 1.2.20.

------------------------------

Troy Dawson
-- 
__________________________________________________
Troy Dawson  dawson at fnal.gov  (630)840-6468
Fermilab  ComputingDivision/CSS  CSI Group
__________________________________________________



More information about the users mailing list