[Slackbuilds-users] Introduction & questions about link creation for the 'oxygen-gtk' theme
Binh Nguyen
binhnguyen at fastmail.fm
Sun Jun 19 11:00:25 UTC 2011
On Sat, 18 Jun 2011 11:11:20 -0500
Robby Workman <rworkman at slackbuilds.org> wrote:
> 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.
>
Oh yes, I forgot that this file only becomes effective when a new user
is created.
--
Binh Nguyen
More information about the SlackBuilds-users
mailing list