import { Injectable } from '@angular/core' ; import { remote } from 'electron' ; @ Injectable ( ) export class Desktop { public openLink ( url ) { remote . shell . openExternal ( url ) ; } public showInFolder ( fileName ) { remote . shell . showItemInFolder ( fileName ) ; } }