Jean28518 / linux-assistant

A daily linux helper with powerful integrated search, routines checks and administrative tasks. The Project is built with flutter and python.
https://www.linux-assistant.org
GNU General Public License v3.0
87 stars 12 forks source link

Feature: run executable files #97

Closed Nati0ns closed 1 year ago

Nati0ns commented 1 year ago

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.

Nati0ns commented 1 year ago

Hi,

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?