LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How does one convert terminal commands to desktop shortcut (https://www.linuxquestions.org/questions/fedora-35/how-does-one-convert-terminal-commands-to-desktop-shortcut-775670/)

bg3075 12-14-2009 07:25 PM

How does one convert terminal commands to desktop shortcut
 
I am attempting to recreate terminal commands with a Fedora desktop launcher shortcut to start x360mediaserve. The commands in the terminal work as below:
Code:

cd /opt/x360mediaserve-0.0.2
./start 192.168.2.126

But attempting to run from a desktop launcher, it doesn't work, with the command line:
Code:

sudo /opt/x360mediaserve-0.0.2/start 192.168.2.126
or
Code:

sudo cd /opt/x360mediaserve-0.0.2;./start 192.168.2.126
I have also attempted to create a shell script, from which to launch via desktop launcher:
Code:

#!/bin/bash
        cd /opt/x360mediaserve-0.0.2
        ./start 192.168.2.126

which also doesn't work. Any advice to what I may be doing wrong?

bg3075 12-14-2009 09:58 PM

OK, I got it to work. Had to change ownership from "root" to myself, and created a shell script, with the same commands, to point to from the desktop launcher.


All times are GMT -5. The time now is 12:44 AM.