But I still have problems:
- I'm using a xml to load images, text and a sound file that I 've imported to the Project Files and that are in the folder's root with the "nw" file. When I click to load one of these assets, nothing happens.
If it works in Windows maybe the path setting is wrong in Linux. Linux needs a leading '/'. But im not really into XML on Construct. Maybe there is someone more advanced with loading files in Linux. It seems @vikuserro has the same problem how-do-i-open-file-from-a-path-on-linux-osx-with-nwjs_t180945
- I really need that the "nw" file can be executed through the file manager. Now the application opens only through the terminal.
For that you need a .desktop file.
Make a textfile with the exact name of your program and the suffix desktop, like when your program is called myApp a myApp.desktop. Now copy this in a text-file:
- Code: Select all
# The version of the desktop entry specification to which this file complies
# The name of the application
# A comment which can/will be used as a tooltip
# The path to the folder in which the executable is run
# The executable of the application.
# The name of the icon that will be used to display this entry
# Describes whether this application needs to be run in a terminal or not
Only mandatory is Type, Name, Exec. You can choose any name you want, in path and Exec you need the exact path to your program.
If the program is in /home/me/Documents/linux64 and called myApp.
You have to set it to:
The same is with icon. If you want an icon you can use a png, svg, ico, icns. Put it in folder with your program and set the path to.
You don't need to have all files in one folder. You can put the .desktop file above all other files, you have only customize the path and exec.
- Code: Select all
All files are in the folder MyAppFolder, in the folder linux64 above is only the nw.desktop file.
I hope that will help, please ask if something is unclear.