[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Fedora-livecd-list] How to add icons to desktop for a custom remix



On Wed, Jul 01, 2009 at 11:17:20 -0700,
  Jane Dogalt <jdogalt yahoo com> wrote:
> 
> On f11, look at /etc/X11/xinit/xinitrc.d/zz-liveinst.sh
> 
> Something else you could do is have a folder of launchers start up automatically.  Just an idle thought...

This worked. I just needed to append to that file in the %post section.
Below is an example that tweaks the games spin.

# Custom games spin that defines rpmfusion and livna repositories
# and includes some media codecs and tools for playing dvds
# and colossus, including a desktop icon for it.

%include /usr/share/spin-kickstarts/fedora-livedvd-games.ks

repo --name=released --baseurl=file:///home/fedora/releases/11/Everything/$basearch/os/
repo --name=updates --baseurl=file:///home/fedora/updates/11/$basearch/
repo --name=f11-updates-testing --baseurl=file:///home/fedora/updates/testing/11/$basearch/
repo --name=free --baseurl=file:///home/fedora/free/fedora/releases/11/Everything/$basearch/os/
repo --name=free-updates --baseurl=file:///home/fedora/free/fedora/updates/11/$basearch/
repo --name=free-updates-testing --baseurl=file:///home/fedora/free/fedora/updates/testing/11/$basearch/
repo --name=nonfree --baseurl=file:///home/fedora/nonfree/fedora/releases/11/Everything/$basearch/os/
repo --name=nonfree-updates --baseurl=file:///home/fedora/nonfree/fedora/updates/11/$basearch/
repo --name=nonfree-updates-testing --baseurl=file:///home/fedora/nonfree/fedora/updates/testing/11/$basearch/
repo --name=livna --baseurl=file:///home/fedora/livna/repo/11/$basearch/
repo --name=local --baseurl=file:///home/fedora/local/

%packages

# Colossus isn't on the games spin yet
colossus

# rpm fusion
rpmfusion-nonfree-release
rpmfusion-free-release
gstreamer-plugins-ugly
gstreamer-plugins-bad
gstreamer-ffmpeg
xine-lib-extras-freeworld

# Livna
livna-release
libdvdcss
libdvdcss-devel

# kernel-devel is needed by kmod-nvidia-96xx
kernel-devel

%post

# Put some games on the desktop
cat <<'EOF' >> /etc/X11/xinit/xinitrc.d/zz-liveinst.sh
if [ `grep -c Geode /proc/cpuinfo` -eq 0 ]; then
  if [ -b /dev/live-osimg ]; then
    cp /usr/share/applications/colossus.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-wesnoth.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-freecol.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-freeciv.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-warzone2100.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-tremulous.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-alienarena.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
  elif [ -f /.livecd-configured ]; then  # FIXME: old way... this should go away
    cp /usr/share/applications/colossus.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/wesnoth.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-freecol.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-freeciv.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-warzone2100.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-tremulous.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
    cp /usr/share/applications/fedora-alienarena.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
  fi
fi
EOF

%end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]