fix: more scalable code by factorizing appindicator support
fix: more scalable code by factorizing appindicator support

- introduce a currentPlatformSupportsAppIndicator() function determining
  if app indicators are supported here.
- handle undefined process.env.XDG_CURRENT_DESKTOP
- added some comments to ensure that the intents are clear
Thanks MarshallOfSound

the-ress/electron,gerhardberger/electron,gerhardberger/electron,electron/electron,the-ress/electron,shiftkey/electron,shiftkey/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,the-ress/electron,bpasero/electron,the-ress/electron,gerhardberger/electron,electron/electron,bpasero/electron,gerhardberger/electron,gerhardberger/electron,electron/electron,shiftkey/electron,shiftkey/electron,bpasero/electron,gerhardberger/electron,electron/electron,shiftkey/electron,the-ress/electron,bpasero/electron,bpasero/electron,electron/electron,bpasero/electron,the-ress/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,electron/electron,the-ress/electron,seanchas116/electron,electron/electron,shiftkey/electron