![]() ![]() This file can be used elsewhere than on the desktop: move/copy it into another directory and it will also run with a double-click in Nemo (or single click if Nemo is so configured). ![]() There's no requirement for this file to have ".desktop" in its name. Įxec=/media/mike/D_drive/My Documents/sysadmin/MyScript.sh The Terminal app is in the Utilities folder in Applications. Head to the file location on your Mac, control-click or right-click the EXE file, and select Wine. It’s also possible to open the EXE setup file for a Windows-based app outside WineBottler’s list. That’ll redirect you to the developer’s website in your Mac’s default browser. What this actually creates is a simple executable text file, e.g. Select the app’s name to open the app’s description page. One of the simplest imaginable dialogs then follows, where you have to choose your executable file, and whether you also want to create a new item in the Start menu, i.e. The following /ics46projects/trivialtest Terminal window shows all these actions. On the desktop, right-click and choose "+ Create a new launcher here". Run the trivialtest executable file, by using the. I don't know whether this applies solely to Mint. The answer is actually very simple, and set up for you. I looked at all the stuff under Nemo Edit -> Preferences. I struggled for ages with this, trying to find out how you can click (or double-click) an executable item and get it to run, without further questions. before renaming the executable files accordingly. py files if the case, etc), under "Appearance conditions": Optionally, and maybe preferably, in order to hide such options for all text files except the executable ones, a way is to restrict appearance use to. ![]() The appearance conditions are simply "text":Ī similar command can be used for running in terminal a such script ("Run in terminal"), while keeping the Xfce4 terminal open: xfce4-terminal -H -x %f The command that I use for running an executable text file is sh -c %f, for a custom action called "Run/Execute script". To avoid that, maybe the most elegant solution is to get a pop-up window with a question like "What do you want to with that file: Run or edit?" (similar to what you have in other file managers like PCManFM and Nemo) when clicking that file - by using Zenity: here.Īn alternative would be custom actions, perhaps the best feature Thunar has. But that feature was considered a security risk. As a complement to the answer about Thunar: that answer would re-enable a previous feature of Thunar to execute scripts on double click. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |