Author Topic: How to create executable for program in /usr/share/  (Read 1189 times)

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
How to create executable for program in /usr/share/
« on: November 20, 2011, 11:57:53 AM »
I installed a game in in my /usr/share/ right now I just run it via terminal, I would like to make a desktop entry to place it in my menu. From what I have seen all the programs that exist in /usr/share/ have an executable in /usr/bin/

Than in the desktop entry you launch it, how can I make something similar like this that will launch the program inside /usr/share/

So like this:
/usr/bin/test -> /usr/share/test0.1/test

Allowing me to put test in my desktop entry.

-Thank You

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11561
  • ----IOFLU----
Re: How to create executable for program in /usr/share/
« Reply #1 on: November 20, 2011, 12:31:09 PM »
I installed a game in in my /usr/share/ right now I just run it via terminal, I would like to make a desktop entry to place it in my menu. From what I have seen all the programs that exist in /usr/share/ have an executable in /usr/bin/

Than in the desktop entry you launch it, how can I make something similar like this that will launch the program inside /usr/share/

So like this:
/usr/bin/test -> /usr/share/test0.1/test

Allowing me to put test in my desktop entry.

-Thank You

In your .desktop Exec= line, just enter the full path to your game.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12795
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to create executable for program in /usr/share/
« Reply #2 on: November 20, 2011, 12:33:27 PM »
Hi Dude.

Try this. - if You want Your .desktop file on the desktop after that - just drag the launcher from the KMenu to the Desktop :).

Andy
« Last Edit: March 28, 2013, 03:56:20 PM by AndrzejL »

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: How to create executable for program in /usr/share/
« Reply #3 on: November 20, 2011, 01:09:14 PM »
I installed a game in in my /usr/share/ right now I just run it via terminal, I would like to make a desktop entry to place it in my menu. From what I have seen all the programs that exist in /usr/share/ have an executable in /usr/bin/

Than in the desktop entry you launch it, how can I make something similar like this that will launch the program inside /usr/share/

So like this:
/usr/bin/test -> /usr/share/test0.1/test

Allowing me to put test in my desktop entry.

-Thank You

In your .desktop Exec= line, just enter the full path to your game.

Worked like a charm, not sure why I didn't try this.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: How to create executable for program in /usr/share/
« Reply #4 on: November 20, 2011, 01:26:43 PM »
I installed a game in in my /usr/share/ right now I just run it via terminal, I would like to make a desktop entry to place it in my menu. From what I have seen all the programs that exist in /usr/share/ have an executable in /usr/bin/

Than in the desktop entry you launch it, how can I make something similar like this that will launch the program inside /usr/share/

So like this:
/usr/bin/test -> /usr/share/test0.1/test

Allowing me to put test in my desktop entry.

-Thank You

In your .desktop Exec= line, just enter the full path to your game.

Worked like a charm, not sure why I didn't try this.

sometimes can it be so simple, and other days  ;D ;D ;D

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11561
  • ----IOFLU----
Re: How to create executable for program in /usr/share/
« Reply #5 on: November 20, 2011, 02:09:17 PM »
I installed a game in in my /usr/share/ right now I just run it via terminal, I would like to make a desktop entry to place it in my menu. From what I have seen all the programs that exist in /usr/share/ have an executable in /usr/bin/

Than in the desktop entry you launch it, how can I make something similar like this that will launch the program inside /usr/share/

So like this:
/usr/bin/test -> /usr/share/test0.1/test

Allowing me to put test in my desktop entry.

-Thank You

In your .desktop Exec= line, just enter the full path to your game.

Worked like a charm, not sure why I didn't try this.

sometimes can it be so simple, and other days  ;D ;D ;D


Ain't that the truth...  ;D ;D ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline david1958

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 210
  • Lovin Linux
    • Ed's Cuckoo Uhren
Re: How to create executable for program in /usr/share/
« Reply #6 on: May 02, 2013, 10:42:54 AM »
Quote
Ain't that the truth

OP, that unusual for you. It should be
Quote
Isn't that the truth

Ha, Ha
I got to go. I'm going to get in trouble for this one!
To all Windows Users, Quit being Lazy and learn Linux. You'll Love it after you get the hang of it!
FullMonty Release:            2013.04
Kernel-version:    3.2.18-pclos2.pae.bfs
KDE4-version:                        4.10.1
Biostar mother Board A55MH,  CPU chip A8-3807K

8 gig ram

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11561
  • ----IOFLU----
Re: How to create executable for program in /usr/share/
« Reply #7 on: May 02, 2013, 10:51:14 AM »
Quote
Ain't that the truth

OP, that unusual for you. It should be
Quote
Isn't that the truth

Ha, Ha
I got to go. I'm going to get in trouble for this one!

Yo dude, U dun be getten in muh face?  ???   ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline david1958

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 210
  • Lovin Linux
    • Ed's Cuckoo Uhren
Re: How to create executable for program in /usr/share/
« Reply #8 on: May 03, 2013, 06:37:11 AM »
well dude, I got 2 smileys and the one on the right so I'll look at the big smile you sent and figure I am not banned from the forum. Got to go plant corn today. Keep the grin OP.
To all Windows Users, Quit being Lazy and learn Linux. You'll Love it after you get the hang of it!
FullMonty Release:            2013.04
Kernel-version:    3.2.18-pclos2.pae.bfs
KDE4-version:                        4.10.1
Biostar mother Board A55MH,  CPU chip A8-3807K

8 gig ram