I wanted to run this at start-up because I like to play around with multiple DEs. When I run this script from a file it won't run Docky.
I have already changed the file permissions so that it is allowed to run as a program.
When I type exactly this into gnome-terminal it will run Docky if I am logged into gnome-classic. I wanted to run this script at startup so that Docky wouldn't start in Unity:
if [ $DESKTOP_SESSION == "gnome-classic" ] ; then docky ; fi
Any suggestions?
I tried writing something like Firefox in the same file and it will start Firefox.
So when I run the following script from a file...
cd /home/user/Desktop
mkdir ITRAN
if [ $DESKTOP_SESSION == "gnome-classic" ] ; then docky ; fi
It makes a new file on my desktop but won't run Docky even though if I simply copy the same code into a terminal window it runs...
With geirha's help, I changed the script. However, now docky launches no matter what DE I run, Unity or gnome-classic.
#!/bin/sh
if [ $DESKTOP_SESSION = "gnome-classic" ]; then
docky
fi
I've also tried
$DESKTOP_SESSION = "gnome-classic"
$DESKTOP_SESSION = gnome-classic
"$DESKTOP_SESSION" = gnome-classic
"$DESKTOP_SESSION" = "gnome-classic"
to rule out the possibility that I had that part wrong.