cautious launcher option to set the executable bit

Asked by Sam

When I download a jar from the internet (or call xdg-open on a jar) it will not open the file unless the executable bit is set.

The application causing this behaviour is the cautious-launch script, which is referred by the mime-type for application/java-archive.

However, this cautious-launch script gives no option to set the executable bit. It is incredibly inconvenient to hunt down the file, flip the bit on the command line, and then manually call xdg-open.

It would be incredibly useful if the call to zenity (in the cautious-launcher) used a --question type that asked if the user wants to set the executable bit (with a disclaimer and warning only for trusted source), and if so, then set the bit and execute it. The change should be fairly trivial.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu mime-support Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Where is the file located and what is it's name (case sensitive)

I can then give a command to mark it executable.

Thanks

Revision history for this message
Sam (sam-halliday) said :
#2

LOL, Andrew: I've been using Linux for 20 years... I think I know how to mark a file executable.

I thought this message was going to go to the authors or maintainers of the mime-support package who will understand what I am saying. I'll contact them separately.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you report a bug.

Can you help with this problem?

Provide an answer of your own, or ask Sam for more information if necessary.

To post a message you must log in.