Browse Source

Move XDG_RUNTIME_DIR definition to /etc/profile.d

rocket-config
mid-kid 8 years ago
parent
commit
28e3cfb98a
  1. 7
      etc/X11/xinit/xinitrc.i3
  2. 6
      etc/profile.d/xdg-runtime-dir.sh
  3. 2
      rocket-config.SlackBuild

7
etc/X11/xinit/xinitrc.i3

@ -24,13 +24,6 @@ if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Set XDG_RUNTIME_DIR
if [ ! "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
mkdir -p "$XDG_RUNTIME_DIR"
chmod 700 "$XDG_RUNTIME_DIR"
fi
# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session /usr/bin/i3

6
etc/profile.d/xdg-runtime-dir.sh

@ -0,0 +1,6 @@
# Create/Set XDG_RUNTIME_DIR
if [ ! "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
mkdir -p "$XDG_RUNTIME_DIR"
chmod 700 "$XDG_RUNTIME_DIR"
fi

2
rocket-config.SlackBuild

@ -30,7 +30,7 @@ find $CWD/etc -type f ! -name '*.orig' -printf '%P\n' | while read config; do
done
# Set some special permissions
chmod 755 $PKG/etc/rc.d/rc.* $PKG/etc/X11/xinit/*
chmod 755 $PKG/etc/rc.d/rc.* $PKG/etc/X11/xinit/* $PKG/etc/profile.d/*
cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz

Loading…
Cancel
Save