-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running a command before launch #67
Comments
I believe what you're trying to do can be achieved by adding a Before launch step.
You should be able to point it to a script changing env var and execute it before launch. |
@BartoszKaszewczuk thanks for answering that one. |
The answer by @BartoszKaszewczuk doesn't work if you need to set an environment variable on the Raspberry Pi. In my case I need to set the DISPLAY environment variable to ":0" just before the program is launched on the target in the same SSH session. |
I have the same issue. Does anyone have a solution yet? |
Hello, I am new to developing on java for RaspberryPi. I am using this plugin on Windows Intellij 2017 and the set up was very easy, so far it has been working great. I have a screen connected to my RaspberryPi and would like to create a simple UI application that I can launch and debug from my Windows machine. However i get the error |
Hello, Super new to Linux and RaspberryPi so it took me a while to figure out how to launch the application with working UI. To get the application working on the screen attached to the RaspberryPI I had to add two commands before launching the Java application. My Modified SSHHandlerTarget is as follows
The two added lines
make sure that the UI is displayed on the screen attached to the RaspberryPI If you run Xming on the windows machine you can also set it up to display the UI on the windows machine. Perhaps adding the different options to the RaspberryPI configuration can be useful. |
Thank you @LucosidE for this solution but does this mean you would need to fork this plugin, compile it yourself with the added code, and then load it into IntelliJ? I'm not clear as to what the exact steps would be. @asebak would it be possible to add @LucosidE 's solution as an option in the IntelliJ configuration screen? |
i would like to have this feature to, but have no clue on how to implement it.... |
I'm also looking at deploying a Processing GUI app to the Pi. It would be great to have the option for the However, if anyone is looking for a simple, quick and dirty hack I found that by simply adding But again the option to have this command by default would be very much welcome to resolve this problem. |
Almost got this great plugin working but am failing at the last step:
When deploying a Processing GUI app to the Pi, Processing complains with the following:
This can be resolved by setting an environment variable just before the Java command is run, however there's no option in Run/Debug configuration to do this.
On OSX it's proving difficult to find any config file to modify the deploy/build scripts. Is this possible to do, & if so where are they located?
The text was updated successfully, but these errors were encountered: