On 05/02/2011 10:16 PM, David C. Rankin wrote: > On 05/02/2011 04:48 PM, Baho Utot wrote: >> _trinity.desktop (){ >> # create/install desktop >> install -d -m755 ${pkgdir}/etc/X11/sessions >> echo '[Desktop Entry]' > ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo 'Encoding=UTF-8' >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo 'Type=XSession' >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo "Exec=${_prefix}/bin/startkde" >> >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo "TryExec=${_prefix}/bin/startkde" >> >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo 'Name=Trinity' >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> echo 'Comment=The Trinity Desktop Environment. A powerful Open >> Source >> graphical desktop environment' >> >> ${pkgdir}/etc/X11/sessions/trinity.desktop >> chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop >> } > > <snip> >> package() { > <snip> >> _trinity.desktop > <snip> > > } > > How is this working for you? Is _var.iable() function identifier > makepkg specific? BASH doesn't like the _trinity.desktop() identifier > by itself: > > #!/bin/bash > > _trinity.desktop() { > # create/install desktop > # install -d -m755 ${pkgdir}/etc/X11/sessions > echo '[Desktop Entry]' > echo 'Encoding=UTF-8' > echo 'Type=XSession' > echo "Exec=${_prefix}/bin/startkde" > echo "TryExec=${_prefix}/bin/startkde" > echo 'Name=Trinity' > echo 'Comment=The Trinity Desktop Environment. A powerful Open > Source graphical desktop environment' > # chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop > } > > _trinity.desktop > > exit 0 > > 21:15 alchemy:~/tde/tnotes/tmp> sh cr-tr.desktop.sh > cr-tr.desktop.sh: line 14: `_trinity.desktop': not a valid identifier > > What gives?? > It is a function only for the PKGBUILD. It creates the trinity.desktop file into pkg directory at build time so of course it doesn't work at the command line as it doesn't exist.