[Slackbuilds-users] Introduction & questions about link creation for the 'oxygen-gtk' theme
Robby Workman
rworkman at slackbuilds.org
Sat Jun 18 16:11:20 UTC 2011
On Sat, 18 Jun 2011 17:05:01 +0700
Binh Nguyen <binhnguyen at fastmail.fm> wrote:
> On Sat, 18 Jun 2011 09:36:02 +0200
> Nicolas Kovacs <info at microlinux.fr> wrote:
>
> > Hi,
> > [...]
> > mkdir -p $PKG/etc/skel
> > cat $CWD/gtkrc > $PKG/etc/skel/.gtkrc-2.0
> > chmod 0644 $PKG/etc/skel/.gtkrc-2.0
> >
> > But how could I have something similar with the symlink?
> >
> > Any suggestions?
> >
> > Niki
>
> If I understand correctly, in this your package, you want to create a
> symlink to gtkrc of the package oxygen-gtk.
>
> Then this would suffice:
>
> mkdir -p $PKG/etc/skel
> cd $PKG/etc/skel
> ln -s ../../usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc .gtkrc-2.0
> cd -
You'll want to use the absolute path ("/usr/...") as opposed to
relative path ("../../usr/...") or else you run the risk of a
broken link. It just happens to work in this case because
/etc/skel is the same distance away from /usr that /home/$USER
is, but if you decide to get creative (or e.g. use the root
account), that link will be broken.
I'm curious why you don't just set the systemwide gtkrc though at
/etc/gtk-2.0/gtkrc to that.
-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110618/e6d71e1e/attachment.asc>
More information about the SlackBuilds-users
mailing list