linux_dream
August 14th, 2013, 01:57 AM
Hi guys,
I'm using Ubuntu 12.04 (64 bits version), I was using Ubuntu 12.04 (32 bits version) but formatted my disk and installed the 64 bits version. So I'm trying to get back all I had.
Some proceedures that used to work don't seem to work anymore.
I need help to put a bash script into Unity bar. I already have the bash script written and it executes fine when I double click on the file and execute it from the terminal.
Here is the proceedure I've followed:
----------------------------------------------------
1)Open a terminal and type
gksudo gedit /usr/share/applications/goban.desktop
So this opens gedit. In this file I type:
[Desktop Entry]
Name=goban
Comment=kgs go server
Exec=sh /home/isaac/Games/goban/goban.sh
Icon=/usr/local/bin/kgs.png
Terminal=true
Type=Application
StartupNotify=true
2)Go to /usr/share/applications and move the .desktop file into unity bar.
---------------------------------------------------
This always worked with all kind of bash scripts I have done. (3 for chess programs, 1 for kgs go server and 1 for a simple program I worte myself).
I can see the desktop entry in /usr/share/applications with the icon I chose in /usr/local/bin/, I can even move it into Unity bar. The problem is when I click on the icon in the Unity bar.
For example the above code does nothing. The computer seems to think for a few seconds but nothing appear. It should start a java interface that would let me enter in kgs go server.
The bash script itself is very simple:
#!/bin/bash
java -jar cgoban.jar
and as I said, it executes fine when I double click on it and select "execute from a terminal".
I have other errors for bash scripts of chess engines, they were working 2 days ago prior to the formatting of my disk. But hopefully by fixing this one I'll be able to handle the other errors.
Thanks for any help!
I'm using Ubuntu 12.04 (64 bits version), I was using Ubuntu 12.04 (32 bits version) but formatted my disk and installed the 64 bits version. So I'm trying to get back all I had.
Some proceedures that used to work don't seem to work anymore.
I need help to put a bash script into Unity bar. I already have the bash script written and it executes fine when I double click on the file and execute it from the terminal.
Here is the proceedure I've followed:
----------------------------------------------------
1)Open a terminal and type
gksudo gedit /usr/share/applications/goban.desktop
So this opens gedit. In this file I type:
[Desktop Entry]
Name=goban
Comment=kgs go server
Exec=sh /home/isaac/Games/goban/goban.sh
Icon=/usr/local/bin/kgs.png
Terminal=true
Type=Application
StartupNotify=true
2)Go to /usr/share/applications and move the .desktop file into unity bar.
---------------------------------------------------
This always worked with all kind of bash scripts I have done. (3 for chess programs, 1 for kgs go server and 1 for a simple program I worte myself).
I can see the desktop entry in /usr/share/applications with the icon I chose in /usr/local/bin/, I can even move it into Unity bar. The problem is when I click on the icon in the Unity bar.
For example the above code does nothing. The computer seems to think for a few seconds but nothing appear. It should start a java interface that would let me enter in kgs go server.
The bash script itself is very simple:
#!/bin/bash
java -jar cgoban.jar
and as I said, it executes fine when I double click on it and select "execute from a terminal".
I have other errors for bash scripts of chess engines, they were working 2 days ago prior to the formatting of my disk. But hopefully by fixing this one I'll be able to handle the other errors.
Thanks for any help!