JavaScript GUI For shelp.sh - Reading a File in JavaScript, Displayed on Linux Client
Here is my code:
Code:
<HTML> |
If this is impossible, just say so please. Also, I would prefer it's cross browser on Linux, but most of the time, it will probably use firefox. If it's also cross platform, and the thing would work on windows, even better. But I don't want it to get too complicated. The owner of the text files, is root, and they are 777 permissions, but could be changed, as long as it's at least readable by ugo.
|
I can also install the file into the settings directory, if I must.
|
I am not sure it is possible to read a file from the client with a web browser. That would be a big security problem.
|
Too bad. I'm declaring it as impossible. Thank you though! It was a nice experiment, while it lasted!
|
Maybe you could right click on your desktop and select `Create shortcut` from the context menu.
|
You need Electron (or something similar, like nwjs) for this.
|
I think node.js and electron are outside of the scope of what I'm doing. I'm only trying to create simple things that work on the web right now. I'm just marking it as impossible, and moving on. For this, since what I wanted to do is impossible, I might just use another tool to create a GUI. Later! Done for now. This would be useful to have, but it's not going to make or break me. Maybe as I need specifically the GUI more, I'll revisit this. I'll just keep working on other stuff for now. Thanks anyway though!
|
All times are GMT -5. The time now is 06:20 AM. |