On Wed, 14 Apr 2004, Ben Armstrong wrote:

> On Wed, Apr 14, 2004 at 10:49:58AM -0700, Mark K. Kim wrote:
> > On Wed, 14 Apr 2004, Ben Armstrong wrote:
> >
> > > > Anyone have suggestions for a real fix?
> > >
> > > Without reference to specific error messages, I cannot begin to guess. :)
> >
> > BTW, the error messages I get when I try to install Tux Paint into my home
> > directory as a user (my system *does* have GNOME and KDE; it's just that
> > I'm installing as a user since I'm installing to my home directory):
> >
> >   ...Installing launcher icon into GNOME...
> >   install: cannot change permissions of `/usr/share/pixmaps': Operation not
> >   permitted
> >   cp: cannot create regular file `/usr/share/pixmaps/tuxpaint.png':
> >   Permission denied
> >   chmod: failed to get attributes of `/usr/share/pixmaps/tuxpaint.png': No
> >   such file or directory
> >   install: cannot change permissions of `/usr/share/gnome/apps/Graphics':
> >   Operation not permitted
> >   cp: cannot create regular file
> >   `/usr/share/gnome/apps/Graphics/tuxpaint.desktop': Permission denied
> >   chmod: failed to get attributes of
> >   `/usr/share/gnome/apps/Graphics/tuxpaint.desktop': No such file or
> >   directory
> >   make: *** [install-gnome] Error 1
> >
> > then the whole thing quits before getting to the KDE stuff.
>
> Ah.  That has a simple solution.  Each of those paths are controlled by
> variables.  They cannot simply be defaulted to paths relative to PREFIX, as
> even though a user may wish to install to prefix = /usr/local, that doesn't
> necessarily mean that's where the GNOME/KDE data dirs will be found, so you
> have to specify these yourself, e.g.
>
> make install GNOME_PREFIX=$HOME/.gnome2/ KDE_ICON_PREFIX=$HOME/.kde/share/icons/
>
> Perhaps this is worthy of a note in docs/INSTALL.txt under the section
> "Changing Where Things Go", giving a complete and working example for
> installing all components into your homedir.  Please note: I have not
> tested the above command.  Please let me know if it is correct.
[snip]

This works:

  make install PREFIX=$HOME/proj/tuxpaint/live \
    GNOME_PREFIX=$HOME/.gnome2/ \
    KDE_PREFIX=$HOME/.kde KDE_ICON_PREFIX=$HOME/.kde/share/icons

After adding this line to Makefile (marked by +):

  install-kde:
    @echo
    @echo "...Installing launcher icon into KDE..."
    @if [ "x$(KDE_PREFIX)" != "x" ]; then \
+     install -d $(KDE_PREFIX)/Graphics/; \
      cp src/tuxpaint.desktop $(KDE_PREFIX)/Graphics/; \
      chmod 644 $(KDE_PREFIX)/Graphics/tuxpaint.desktop; \
    fi

-Mark (at home... -_-v)


-- 
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
PGP key available on the homepage
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to