LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Didn't want to ask but I've tried for a couple of hours now.... (https://www.linuxquestions.org/questions/linux-newbie-8/didnt-want-to-ask-but-ive-tried-for-a-couple-of-hours-now-4175557388/)

jkirksey1889 10-28-2015 01:04 PM

Didn't want to ask but I've tried for a couple of hours now....
 
You guys helped me get unicenta running by going into terminal and cd /home/jason/unicentaopos-3.91.2 then sh start.sh.

I can go into terminal every time and get the program running this way. I'd like to create a desktop shortcut so I can just click and the program starts. I'm using Mint 17 Cinnamon.

I've right clicked desktop and clicked create new launcher but nothing I put in will allow me to click the OK button so I must be doing something wrong.

Thanks in advance.

jdkaye 10-29-2015 06:05 AM

Is start.sh set as executable? If it is then just put the following in your shortcut:
Code:

/home/jason/unicentaopos-3.91.2/start.sh
jdk

jkirksey1889 10-29-2015 08:08 AM

Quote:

Originally Posted by jdkaye (Post 5441805)
Is start.sh set as executable? If it is then just put the following in your shortcut:
Code:

/home/jason/unicentaopos-3.91.2/start.sh
jdk

I've tried that and several other possibilities. No matter what I put in the OK button does not activate so I cannot click it.
Thanks

rokytnji 10-29-2015 09:14 AM

Show us the properties of start.sh

example on mine

Code:

$ ls -l .weather.sh
-rwxrwxrwx 1 biker biker 458 Jul 24  2013 .weather.sh

Quote:

-rwxrwxrwx
That is what members need to see plus your launch string command you put on your icon.

Smokey_justme 10-29-2015 10:41 AM

L.E. Ignore this.. I've reread your second comment and I was wrong.. Just try running this once:
Code:

chmod u+x /home/jason/unicentaopos-3.91.2/start.sh
Then everything should work as you desire...

jkirksey1889 10-29-2015 11:11 AM

Quote:

Originally Posted by Smokey_justme (Post 5441921)
L.E. Ignore this.. I've reread your second comment and I was wrong.. Just try running this once:
Code:

chmod u+x /home/jason/unicentaopos-3.91.2/start.sh
Then everything should work as you desire...

Great! That opened up the OK box, and now is clickable. However, I dont know if I should check launch in terminal or not?

Smokey_justme 10-29-2015 11:13 AM

Both options should work...

jkirksey1889 10-29-2015 11:51 AM

I love learning new things and I always eventually become very good at what I work at but this is very frustrating. Now I've tried it with launch in terminal checked and unchecked, and I have a desktop icon, however nothing happens when I click on it. ????

Smokey_justme 10-29-2015 12:17 PM

Try to edit that desktop link and set the working directory to /home/jason/unicentaopos-3.91.2 and the command to start.sh

jkirksey1889 10-29-2015 01:17 PM

Found this about installing Unicenta in Ubuntu. This may apply to Mint as well?

3. Fix uniCenta oPOS launcher.

uniCenta oPOS creates a fautly desktop launcher icon in Ubuntu.
To fix this we need to first move and fix the launcher, open a terminal and enter:

cd ~/Desktop
sudo sed 's/Exec/#Exec/g' "uniCenta oPOS.desktop" > /tmp/.unicenta.desktop
sudo echo -e "\nExec=sh /opt/unicentaopos-3.01/start.sh" >> /tmp/.unicenta.desktop
sudo rm "uniCenta oPOS.desktop"
sudo mv /tmp/.unicenta.desktop "/usr/share/applications/uniCenta oPOS.desktop"

4. Fix start.sh

As strange as it may seem, the start.sh file has control characters (^M) in that prevents the program from running correctly on Linux.
To fix this we create a new start.sh file in the installation directory with the non printable characters removed.

sudo cat /opt/unicentaopos-3.01/start.sh | sed 's/\o015//g' > /tmp/.start.sh
sudo mv /opt/unicentaopos-3.01/start.sh /opt/unicentaopos-3.01/start-original.sh
sudo mv /tmp/.start.sh /opt/unicentaopos-3.01/start.sh

All that is left to do is to make the start.sh file executable:

sudo chmod +x /opt/unicentaopos-3.01/start.sh

You will now be able to find uniCenta in the Dash and start the application.

https://www.thefanclub.co.za/how-to/...nta-pos-ubuntu

jdkaye 10-29-2015 01:58 PM

This was why I asked you if start.sh was executable.
jdk


All times are GMT -5. The time now is 03:40 PM.