You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to pass arguments like electronplayer --service netflix that would launch the specified service.
This would allow people who have downloaded the app specifically for one of the services to be able to create a separate .desktop file with its icon, etc.
I currently have set Netflix as the default service, but I would like to be able to create a separate file with the service icon and name entirely for aesthetical purposes.
The text was updated successfully, but these errors were encountered:
zefir-git
changed the title
Option to launch a service via the terminal
Feature Request: Option to launch a service via the terminal
Nov 22, 2020
I can't really understand exactly how the application works, but this should be the code:
if(app.commandLine.hasSwitch('service'){const{ app }=require('electron');//find service by nameletservice=services.filter(service=>{//both to lowercase to make it case insensitivereturnservice.name.toLowerCase()===app.commandLine.getSwitchValue("service").toLowerCase()})[0];//get 1st result//client sideanimateLoader(service,createElement('img',null,service.style));console.log(`Switching to service ${service.name}} at the URL ${service.url}...`);ipc.send('open-url',service);}
Feature Request
It would be nice to be able to pass arguments like
electronplayer --service netflix
that would launch the specified service.This would allow people who have downloaded the app specifically for one of the services to be able to create a separate .desktop file with its icon, etc.
I currently have set Netflix as the default service, but I would like to be able to create a separate file with the service icon and name entirely for aesthetical purposes.
The text was updated successfully, but these errors were encountered: