Skip to content

Commit a414fde

Browse files
author
Federico Fissore
committed
Fixed missing icon due to incorrect path
1 parent 71de447 commit a414fde

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,8 +1924,7 @@ static public void setIcon(Frame frame) {
19241924

19251925
// don't use the low-res icon on Linux
19261926
if (OSUtils.isLinux()){
1927-
String current = System.getProperty("user.dir");
1928-
Image image = Toolkit.getDefaultToolkit().createImage(current + "/lib/arduino.png");
1927+
Image image = Toolkit.getDefaultToolkit().createImage(BaseNoGui.getContentFile("/lib/arduino.png").getAbsolutePath());
19291928
frame.setIconImage(image);
19301929
return;
19311930
}

0 commit comments

Comments
 (0)