Tag Info

New answers tagged

0

I needed to add this: sudo update-alternatives --config x-www-browser And choose Firefox as default browser. Only after that it was working. The change: xdg-mime default Firefox.desktop x-scheme-handler/http didn't work itself. After adding both — it is working just fine.


1

I solve it using a nodeJS server. (not clean/final code but its working) Computer A : (server) function change_wallpaper(image){ var objReq = new XMLHttpRequest(); objReq.open("GET", "http://localhost:8888" + "?image=" + image, false); objReq.send(null); } <img src="./img/1.jpeg" onclick="change_wallpaper(this.src);" /> <img ...


1

For simple things you can use curl. There is a way in curl to get fill in a form with the -F option but many things are more complex than just submitting a single form. For that, you need to go through multiple steps to get to where you want to be. I would write a perl script and use the WWW::Mechanize module. ...


2

You cannot do that in general, but in a defined environment, where you can control the client machine B, you can propose that machine B runs a setroot service, you can simply write on your own with nodejs or golang for example and talk to that service when you receive the event. But in any case you don't have any chance (or at least you never should have a ...


1

Not really, no. That is the mother of all security holes. You are asking if you can set up a webpage that executes arbitrary commands on the client's machine. What if I set up a webpage that runs this command: rm -rf ~/ That would delete all files in your $HOME. In fact, there was recently an uproar when a bug was discovered that allowed this to happen. ...



Top 50 recent answers are included