title: In Ubuntu, Check for existence of file, then... (not server)
body: <p>I need a script that will load something only if a file exists. want to hide this program if it's not installed, Pidgin. I have this right now to show the file;</p>
  
  <pre><code>let icon = new St.Icon({icon_name: "pidgin", icon_size: ICON_SIZE, icon_type: St.IconType.FULLCOLOR});
          this.filesystemItem = new MyPopupMenuItem(icon, _("Chat"));
  
          this.menu.addMenuItem(this.filesystemItem);
          this.filesystemItem.connect('activate', function(actor, event) {
              Main.Util.spawnCommandLine("pidgin");
          });
  </code></pre>
  
  <p>I need that only to load if the file: /usr/share/applications/Pidgin Internet Messenger.desktop is present. Please and thank you.</p>