Filepath with Spaces as Java Argument -


what i'm trying is,

r.exec("xdg-open "+args[1]+"/qrcode.png"); 

but doesn't work expected if args[1] contains white spaces. know in case of shell script can resolved using "$path". need solution java.

try wrapping path in quotes:

r.exec("xdg-open \""+args[1]+"/qrcode.png\""); 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -