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
Post a Comment