d-rez / gbz_overlay

Gameboy Zero status icon overlay display
64 stars 20 forks source link

Remove the symbolic link requirement #2

Open d-rez opened 7 years ago

d-rez commented 7 years ago

There must be a better way than creating that silly symlink

bverc commented 5 years ago

Not elegant, but this works:

bat_iconpath = iconpath + "ic_battery_" + level_icon + "_white_" + str(dpi) + "dp.png"
if (level_icon == "alert_red"):
  bat_iconpath = iconpath2 + "battery-alert_" + str(dpi) + ".png"
overlay_processes["bat"] = subprocess.Popen(pngview_call + [ "0", bat_iconpath])