Open file and close it by console

TheDennis

New Member
Joined
Jan 23, 2019
Messages
11
Reaction score
2
Credits
0
HI, I'm oding a java program to do some stuff with some JPG images. I want to add an option to preview one of those JPG images, and I can easily do this by sending a bash command from Java, wich is "xdg-open filename". But I also want to close that new window, and I don't know how. Xkill is not an option because I need to close it automatically. I can work with bash,Java and C.
 

Staff online


Top