Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get running application list, cross-platform #105

Closed
egoist opened this issue Oct 25, 2017 · 9 comments
Closed

Get running application list, cross-platform #105

egoist opened this issue Oct 25, 2017 · 9 comments

Comments

@egoist
Copy link

egoist commented Oct 25, 2017

For example on macOS you can achieve this by running applescript:

osascript -e 'tell application"System Events" to get name of (processes where background only is false)'

It would be ideal that we can have a cross-platform solution for this:

const appList = require('app-list')

appList().then(list => {
  // ['iTerm2', 'Telegram', 'Sublime Text', ...]
})

And maybe more info about the apps too, like last used time

@sindresorhus
Copy link
Owner

What do you need it for?

@egoist
Copy link
Author

egoist commented Nov 18, 2017

@sindresorhus for such feature in Discord:

2017-11-18 5 42 06

@hemanth
Copy link

hemanth commented Nov 18, 2017

We could enhance process-list #2 to support osx and it should suffice this use case.

@yinghang
Copy link

yinghang commented Mar 4, 2018

What about this neekey/ps?

@kevva
Copy link

kevva commented Mar 5, 2018

We already have https://github.com/sindresorhus/ps-list. I think @egoist only want to get apps that are running.

@nektro
Copy link

nektro commented Nov 28, 2018

While I'm sure it's possible, it shouldn't be.

@Richienb
Copy link

@egoist I've confirmed it's possible to do this. I'll start working on the module.

@Richienb
Copy link

Richienb commented Jan 3, 2020

I've got some basic logic down. I'll test this a bit before releasing:
https://github.com/Richienb/winds

@Richienb
Copy link

Richienb commented Jan 3, 2020

@egoist I've released winds with a passing build which resolves this issue.

@sindresorhus You can close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants