Author Topic: shell script to .exe?  (Read 4749 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: shell script to .exe?
« Reply #15 on: September 22, 2011, 10:29:06 PM »
Rudge, this was what I have concluded as well. At first the OP asked how to make a shell script executable. And it turned out that the script already is. The OP's issue was with the selection of games. I think what he wants is a click to launch a game without the the menu. Since the games are Java, the OP has to dig deeper into finding out the actual command for the game. And only then will he be able to tailor-made the script.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Rudge

  • Hero Member
  • *****
  • Posts: 9671
  • I'm Just A Dog.
Re: shell script to .exe?
« Reply #16 on: September 22, 2011, 10:31:07 PM »
Rudge, this was what I have concluded as well. At first the OP asked how to make a shell script executable. And it turned out that the script already is. The OP's issue was with the selection of games. I think what he wants is a click to launch a game without the the menu. Since the games are Java, the OP has to dig deeper into finding out the actual command for the game. And only then will he be able to tailor-made the script.

Yep. +1  ;)


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: shell script to .exe?
« Reply #17 on: September 22, 2011, 10:52:20 PM »
what file manager does openbox use?

The OP has a script and he wants to just click it to run it.

I have pcmanfm file manager  here and when you click a script on it, it shows a pop up that says "this blablabla seem to be an executable script. What do you want to do with it". It then gives four options, execute, execute in terminal, open and cancel.

It pops up similar dialog but with different options when clicking on a binary executable.

What the OP wants is for this kind of a dialog not to show up, he just want the script to run ie, he wants the dialog to autoselect "execute" without showing up.

pcmanfm seem to pop up a dialog every time an executable is clicked and ask a user how to proceed, the OP doesnt want to be asked this question. He just want the clicked executable to run.

Looking at pcmanfm options and it doesnt seem to have an option to turn this off.

Possible solution could be to add the executable to the menu. Again, those wilth open box installs should be able to offer solutions on how to do that.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline billy7720

  • Full Member
  • ***
  • Posts: 222
  • DBGL = DosBox Game Launcher! Games coming!
Re: shell script to .exe?
« Reply #18 on: September 22, 2011, 10:56:18 PM »
what file manager does openbox use?

The OP has a script and he wants to just click it to run it.

I have pcmanfm file manager  here and when you click a script on it, it shows a pop up that says "this blablabla seem to be an executable script. What do you want to do with it". It then gives four options, execute, execute in terminal, open and cancel.

It pops up similar dialog but with different options when clicking on a binary executable.

What the OP wants is for this kind of a dialog not to show up, he just want the script to run ie, he wants the dialog to autoselect "execute" without showing up.

pcmanfm seem to pop up a dialog every time an executable is clicked and ask a user how to proceed, the OP doesnt want to be asked this question. He just want the clicked executable to run.

Looking at pcmanfm options and it doesnt seem to have an option to turn this off.

Possible solution could be to add the executable to the menu. Again, those wilth open box installs should be able to offer solutions on how to do that.

EXACTLY! You got it! I want to remove that stupid menu and have files RUN normally! That's all I'm asking. It seems Openbox has issues with this or something. Am I missing something? I have no idea.

You got it right muungwana. I just want that dumb menu to go away. I got the "Mini" version of Openbox and it seems not to want to work right no matter what I do.
MY LAPTOP:
DUAL BOOT Windows XP/PCLinuxOS KDE 2011:
hp ze4900 - Intel 1.4 GHz Celeron M - 2 GB RAM - 1024x768 graphics - 60 GB Hitachi Travelstar HD
Oldie but goodie! Runs PCLinuxOS PERFECT!
PCLinuxOS: Radically Simple, graphically superior!

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: shell script to .exe?
« Reply #19 on: September 22, 2011, 11:09:44 PM »

what file manager does open box use?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline billy7720

  • Full Member
  • ***
  • Posts: 222
  • DBGL = DosBox Game Launcher! Games coming!
Re: shell script to .exe?
« Reply #20 on: September 22, 2011, 11:11:21 PM »

what file manager does open box use?

PCManFM

« Last Edit: September 22, 2011, 11:15:00 PM by billy7720 »
MY LAPTOP:
DUAL BOOT Windows XP/PCLinuxOS KDE 2011:
hp ze4900 - Intel 1.4 GHz Celeron M - 2 GB RAM - 1024x768 graphics - 60 GB Hitachi Travelstar HD
Oldie but goodie! Runs PCLinuxOS PERFECT!
PCLinuxOS: Radically Simple, graphically superior!

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: shell script to .exe?
« Reply #21 on: September 22, 2011, 11:40:14 PM »
I've just installed DosBox, and it appears in the Applications/More Applications/Emulators submenu.  I think this shell script thing is a bit of a red herring.  To launch the app, just click on it in the sub-menu.  If you want a short cut to it so a child can find it - say on the desktop, just follow my previous instructions.  It's that easy.

EDIT - hang on, just did a quick re-read of posts.  Is the script to launch a specific game via DosBox?  Maybe post the contents of the script here.

« Last Edit: September 23, 2011, 12:13:48 AM by Taco.22 »
Linux Registered User # 529407


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: shell script to .exe?
« Reply #22 on: September 23, 2011, 02:23:49 AM »
what file manager does openbox use?

The OP has a script and he wants to just click it to run it.

I have pcmanfm file manager  here and when you click a script on it, it shows a pop up that says "this blablabla seem to be an executable script. What do you want to do with it". It then gives four options, execute, execute in terminal, open and cancel.

It pops up similar dialog but with different options when clicking on a binary executable.

What the OP wants is for this kind of a dialog not to show up, he just want the script to run ie, he wants the dialog to autoselect "execute" without showing up.

pcmanfm seem to pop up a dialog every time an executable is clicked and ask a user how to proceed, the OP doesnt want to be asked this question. He just want the clicked executable to run.

Looking at pcmanfm options and it doesnt seem to have an option to turn this off.

Possible solution could be to add the executable to the menu. Again, those wilth open box installs should be able to offer solutions on how to do that.

EXACTLY! You got it! I want to remove that stupid menu and have files RUN normally! That's all I'm asking. It seems Openbox has issues with this or something. Am I missing something? I have no idea.

You got it right muungwana. I just want that dumb menu to go away. I got the "Mini" version of Openbox and it seems not to want to work right no matter what I do.


Aha ... that definitely changes the game. I hardly use PCManFM so this is where I get off the bus. But before I vacate the premises, there are a couple of things that needed to be considered. billy7720's script is on the desktop. Are there any settings ... config on PCManFM that would ignore the popup window ... something like a checkbox with Remember last action? The other option you can explore is the .desktop files.

Well, I'm off to get a tan. Enjoy yourselves.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: shell script to .exe?
« Reply #23 on: September 23, 2011, 02:50:33 AM »
Anything on the desktop is in the Desktop folder in the /home/user folder.  Anything you put in that folder is automatically displayed.  Create a new folder in the Desktop folder and - bingo, there it is, on the desktop.  The issue with the script could be permissions, or maybe its command path.  Have a look at the script in the Desktop folder.  Is it original, or is it a link?

Linux Registered User # 529407


Offline billy7720

  • Full Member
  • ***
  • Posts: 222
  • DBGL = DosBox Game Launcher! Games coming!
Re: shell script to .exe?
« Reply #24 on: September 23, 2011, 09:04:24 AM »
Okay, I'm going to explain EXACTLY what I did and what I need done:

I installed DosBox via the package manager and it's installed. Done through synaptic.

I also installed Java which is required by DBGL (DosBox Game Launcher).

I placed DBGL on the desktop in a folder.

I click on the DBGL shell script (EXE file) and that silly menu appears asking me four questions. I want this
menu gone. EVERYTHING RUNS BUT that menu ALWAYS pops up when I want to launch DBGL via it's shell. That will not cut it. That must go.

I've done everything step by step above and it all works. DosBox runs on it's own, but DBGL REQUIRES Java to run and DBGL ALSO requires DosBox to run. Once everything is installed EVERYTHING WORKS EXCEPT for that silly menu that pops up.

That's about it. I'm wondering if I need to place the folder for DBGL somewhere else since I can't configure the file manager on Openbox. What else can I do? Any ideas? I may follow Taco's advice on the first pages of this thread and see if it works or not. Perhaps something else is missing.

Who knows.

Too bad DBGL isn't a package yet in the repos. This would end that frustration for installation. Heh, I made a funny! :p

« Last Edit: September 23, 2011, 09:09:12 AM by billy7720 »
MY LAPTOP:
DUAL BOOT Windows XP/PCLinuxOS KDE 2011:
hp ze4900 - Intel 1.4 GHz Celeron M - 2 GB RAM - 1024x768 graphics - 60 GB Hitachi Travelstar HD
Oldie but goodie! Runs PCLinuxOS PERFECT!
PCLinuxOS: Radically Simple, graphically superior!

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10621
  • MLUs Forever!
Re: shell script to .exe?
« Reply #25 on: September 23, 2011, 09:09:43 AM »
Quote
I click on the DBGL shell script (EXE file)

Can you give that file executable permission? If it has it will it still ask?
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: shell script to .exe?
« Reply #26 on: September 23, 2011, 10:03:09 AM »
Quote
I click on the DBGL shell script (EXE file)

Can you give that file executable permission? If it has it will it still ask?

pcmanfm pops up the menu whenever an executable is clicked, it does the same for both scripts and binary files.. The problem is not with the script but with the default behavior of this file manager.

OP,
I looked at pcmanfm options and there doesnt seem to be an option to turn the pop up off. Google is also not very helpful in finding out if there is a way around it.

I think the only way forward to bypass pcmanfm.

Either use another light weight file manager that doesnt have the behavior or add the script to the program menu list of openbox.
OP,
have you tried adding a menu of the program to the menu list. This will allow you to launch the program without going through the file manager.

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10621
  • MLUs Forever!
Re: shell script to .exe?
« Reply #27 on: September 23, 2011, 10:34:44 AM »
Quote
I click on the DBGL shell script (EXE file)

Can you give that file executable permission? If it has it will it still ask?

pcmanfm pops up the menu whenever an executable is clicked, it does the same for both scripts and binary files.. The problem is not with the script but with the default behavior of this file manager.


I am guessing that PCManFM manages all running of files, regardless where they are run from?

This presumably is a consequence of how the OS is built .....  as depending on those functions of PCManFM.

I never took any notice previously and don't use that version often enough to be aware of this annoyance.
It is - on the other hand - a great safety measure.
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline billy7720

  • Full Member
  • ***
  • Posts: 222
  • DBGL = DosBox Game Launcher! Games coming!
Re: shell script to .exe?
« Reply #28 on: September 23, 2011, 10:49:14 AM »
It is a great safety measure. I agree.

But, if I could find the proper area to put the DBGL FOLDER into and create a link to the shell I would do that. Of course the other option to download another file manager which I may do. Any ideas for a good one?

Otherwise I would hate to teach a 7 year old girl how to run DBGL by clicking the shell, clicking the "execute" and then having to click on the game via DBGL. This works but it's rediculous to do all that to make a bloody game run!

I would like her to be able to click on the DBGL shell and it runs. That's it. Once DBGL is loaded the list of games (once programmed into the menu system by me) are ready to launch with a single click. This is perfect for her.

I may look into a new file manager. I don't know what else to do.

One of the silliest things I've seen with this file manager is when I went to place a new backdrop for her in the wallpapers area it told me "access denied" and I was stymied! WHAT??? That's not right. Something is wrong with PCManFM. If it can't allow that something is extremely wrong. I had to put the background in the "pictures" folder instead. That is nuts.

Funny thing is that I've been online with her soon to be laptop and downloaded java and dosbox through synaptic without ANY issues. Everything works. It's funny how PCManFM will allow these installations but not allow a file or folder to be dropped into the same areas. I'm stumped.

>>>add the script to the program menu list of openbox.
Where is this located? I have no idea. I'm still learning this stuff guys and appreciate all the help. Reallly I do but I'm just figuring all this out.
« Last Edit: September 23, 2011, 11:02:05 AM by billy7720 »
MY LAPTOP:
DUAL BOOT Windows XP/PCLinuxOS KDE 2011:
hp ze4900 - Intel 1.4 GHz Celeron M - 2 GB RAM - 1024x768 graphics - 60 GB Hitachi Travelstar HD
Oldie but goodie! Runs PCLinuxOS PERFECT!
PCLinuxOS: Radically Simple, graphically superior!

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: shell script to .exe?
« Reply #29 on: September 23, 2011, 01:55:19 PM »
Hi,

Open PCManFM, have your script in the Desktop folder, right-click on the script and select "properties". Then do as on the screenshot:



tick the field "Make the file executable", then click on the button "OK"

There are other ways that allow having a launcher looking like an icon related to the program, but it's not "at hand" if the program is not available in the repositories.

Could we see what your script contains please ? I am interested by anything that can come into a version for Kids. And have you tried our PCLinuxOS non official but authorized version, PCLinuxOS Education ? :)

There is a full presentation here : PCLinuxOS Edu

What is it about your panel ? Which version of Bonsai have you installed ? The most recent one or the one from last autumn ?

Regards,
Mélodie

« Last Edit: September 23, 2011, 01:57:35 PM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode