Browse Source

Stalonetray isn't functional when executed from .xinitrc for now

master
fiorile 3 months ago
parent
commit
41591e60da
  1. 6
      neetbsd.sh

6
neetbsd.sh

@ -50,8 +50,8 @@ else @@ -50,8 +50,8 @@ else
# ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional
# Configure, compile, install, clean
./configure && make CPPFLAGS=-I/usr/pkg/include CPPFLAGS+=-I/usr/X11R7/include && su root -c 'make install clean'
# .desktop
su root -c 'printf "[Desktop Entry]\nType=Application\nName=xdiskusage\nComment=Graphical disk usage program\nTerminal=false\nTryExec=xdiskusage\nExec=/usr/local/bin/xdiskusage\nCategories=Utility" > /usr/share/applications/xdiskusage.desktop'
# .desktop ... apparently redundant with Enlightenment already detecting xdu but well
su root -c 'mkdir /usr/local/share/applications/ && printf "[Desktop Entry]\nType=Application\nName=xdiskusage\nComment=Graphical disk usage program\nTerminal=false\nTryExec=xdiskusage\nExec=/usr/local/bin/xdiskusage\nCategories=Utility" > /usr/local/share/applications/xdiskusage.desktop'
cd .. # Go back to /tmp
rm -r /tmp/xdiskusage-1.60* # Erase tmp compilation data
echo 'Software compilation done'
@ -66,7 +66,7 @@ echo 'Configuring the installed packages...' @@ -66,7 +66,7 @@ echo 'Configuring the installed packages...'
echo 'Creating ~/.xinitrc'
# Back up the previous .xinitrc if it exists
mv ~/.xinitrc ~/.xinitrc.old && echo 'Previous .xinitrc backed up as .xinitrc.old'
printf 'exec enlightenment_start\nexec stalonetray\n' > ~/.xinitrc.tmp # Start enlightenment + stalonetray
printf 'exec enlightenment_start\n' > ~/.xinitrc.tmp # Start enlightenment
cat ~/.xinitrc.tmp ~/.xinitrc.old > ~/.xinitrc # Merge the command for e. with the old xinitrc
rm ~/.xinitrc.tmp # Erase the temporary xinitrc
# RESULTING .xinitrc:

Loading…
Cancel
Save