this commit makes it possible to run files, that are marked as executable (closes #43).
I believe this feature would affect scripts most of the time, so I decided to add an option for running the file in a terminal, so that the script output is visible. Determining the default terminal of the user is kind of difficult, because there is no standard between distributions. So the created python script will enumerate some terminal options and will output the first one that it finds.
Still this is kind of incomplete. The complete solution would be to ask the user if the file should be run and if it should be run in a terminal (like the dialog Linux Mint shows, if you double click an executable file).
To be honest, I have no clue about UI stuff in Flutter... so maybe this can be implemented at a later point in time?
thanks for your feedback. I reduced the number of terminals as you asked. Do you want me to remove the "TODO" comments in the action handler as well and just keep the command for executing the file?
Hello,
this commit makes it possible to run files, that are marked as executable (closes #43).
I believe this feature would affect scripts most of the time, so I decided to add an option for running the file in a terminal, so that the script output is visible. Determining the default terminal of the user is kind of difficult, because there is no standard between distributions. So the created python script will enumerate some terminal options and will output the first one that it finds.
Still this is kind of incomplete. The complete solution would be to ask the user if the file should be run and if it should be run in a terminal (like the dialog Linux Mint shows, if you double click an executable file).
To be honest, I have no clue about UI stuff in Flutter... so maybe this can be implemented at a later point in time?
Best regards.