Yes, you can have several commands in a single file.
Yes, you can have several commands in a single file.
You can set up a shortcut that opens your desired application when you double-click a file. In Linux Mint 18.3, create a desktop shortcut pointing to the executable file and assign it to a custom action or script that launches the app. You can also use a launcher like `xdg-open` or a tool such as `launchd` for more control.
Option A executes a copy followed by the application, irrespective of the copy result.
Option B copies first and runs the application only if the copy succeeds.
Option C copies in the background and then runs the application regardless of the copy outcome.
These commands perform distinct actions. I prefer option B, removing or modifying the "exit 0" part so it becomes clearer. The key distinction lies in error management: A executes the copy fully and launches your app even if errors occur. B executes it only when everything succeeds. C hides the copy and runs both tasks simultaneously. Using "exit 0" resets any previous settings.