Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Startup file in IceWM not working [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri May 07, 2010 2:53 pm    Post subject: Startup file in IceWM not working [SOLVED] Reply with quote

My startup file for IceWM doesn't seem to work. I have:

Code:

#!/bin/bash

wicd-gtk&
xscreensaver -nosplash&


Neither wicd nor xscreensaver start when I log in, although I can start them both manually. I did chmod +x .icewm/startup.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Sat May 15, 2010 4:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri May 07, 2010 7:37 pm    Post subject: Reply with quote

This does seem to work for me:
Code:

#!/bin/sh
xscreensaver &
wicd-gtk &

I use x11-wm/icewm-1.3.7_pre2, btw.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat May 08, 2010 1:23 am    Post subject: Reply with quote

I don't have that version in my tree. How'd you get it?

I take it that this newer version requires a space before the &.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Sat May 08, 2010 1:37 am    Post subject: Reply with quote

I edited the ebuild in portage. Here it is. Name it as icewm-1.3.7_pre2.ebuild
Also it uses the patches which is available in portage. Just copy it.
Code:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/icewm/icewm-1.2.37.ebuild,v 1.4 2009/11/16 15:36:27 vostorga Exp $

inherit eutils autotools

DESCRIPTION="Ice Window Manager with Themes"

HOMEPAGE="http://www.icewm.org/"

#fix for icewm preversion package names
S=${WORKDIR}/${P/_}

SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.gz"

LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"

IUSE="esd gnome imlib nls truetype xinerama minimal debug uclibc xrandr"

RDEPEND="x11-libs/libX11
   x11-libs/libXrandr
   x11-libs/libXext
   x11-libs/libXpm
   x11-libs/libXrender
   x11-libs/libXft
   x11-libs/libSM
   x11-libs/libICE
   xinerama? ( x11-libs/libXinerama )
   xrandr? ( x11-libs/libXrandr )
   esd? ( media-sound/esound )
   gnome? ( gnome-base/gnome-desktop )
   imlib? ( >=media-libs/imlib-1.9.10-r1 )
   nls? ( sys-devel/gettext )
   truetype? ( >=media-libs/freetype-2.0.9 )
   media-libs/giflib"

DEPEND="${RDEPEND}
   x11-proto/xproto
   x11-proto/xextproto
   xinerama? ( x11-proto/xineramaproto )
   >=sys-apps/sed-4"

pkg_setup() {
   if use truetype && use minimal; then
      ewarn "You have both 'truetype' and 'minimal' use flags enabled."
      ewarn "If you really want a minimal install, you will have to turn off"
      ewarn "the truetype flag for this package."
   fi
}

src_unpack() {
   unpack ${A}
   cd "${S}/src"

   use uclibc && epatch "${FILESDIR}/icewm-uclibc.patch"

   echo "#!/bin/sh" > "$T/icewm"
   echo "/usr/bin/icewm-session" >> "$T/icewm"

   cd "${S}"
   eautoreconf
}

src_compile() {

   if use truetype
   then
      myconf="${myconf} --enable-gradients --enable-shape --enable-shaped-decorations"
   else
      myconf="${myconf} --disable-xfreetype --enable-corefonts
         $(use_enable minimal lite)"
   fi

   myconf="${myconf}
      --with-libdir=/usr/share/icewm
      --with-cfgdir=/etc/icewm
      --with-docdir=/usr/share/doc/${PF}/html
      $(use_with esd esd-config /usr/bin/esd-config)
      $(use_enable gnome menus-gnome2)
      $(use_enable nls)
      $(use_enable nls i18n)
      $(use_with imlib)
      $(use_enable x86 x86-asm)
      $(use_enable xinerama)
      $(use_enable xrandr)
      $(use_enable debug)"

   CXXFLAGS="${CXXFLAGS}" econf ${myconf} || die "configure failed"

   sed -i "s:/icewm-\$(VERSION)::" src/Makefile || die "patch failed"
   sed -i "s:ungif:gif:" src/Makefile || die "libungif fix failed"

   emake || die "emake failed"
}

src_install(){
   emake DESTDIR="${D}" install || die "make install failed"

   dodoc AUTHORS BUGS CHANGES PLATFORMS README* TODO VERSION
   dohtml -a html,sgml doc/*

   exeinto /etc/X11/Sessions
   doexe "$T/icewm"

   insinto /usr/share/xsessions
   doins "${FILESDIR}/IceWM.desktop"
}

pkg_postinst() {
   if use gnome; then
      elog "You have enabled gnome USE flag which provides icewm-menu-gnome2 ."
      elog "It is used internally and generates IceWM program menus from"
      elog "FreeDesktop .desktop files"
   fi
}

_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat May 15, 2010 4:15 pm    Post subject: Reply with quote

Thanks for the ebuild. I upgraded icewm and the startup file is now working.

8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Sat May 15, 2010 9:17 pm    Post subject: Reply with quote

Glad that worked.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum