question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Run] Ability to execute system/OS commands like shutdown

See original GitHub issue

As per this twitter conversation, it would be nice to have the ability to execute system commands such as sleep, shutdown ,and switch user account from within the launcher via the use of friendly keywords.

Some keyword examples: “sleep” - send the PC to sleep “hibernate” - send the PC to sleep “shutdown” - shut the PC down “switch user” - switch user account

As current if we search for Sleep from within Windows Search we are only given the option to view Sleep and power settings. It is possible to run such commands from Win + R, although our command will instead look like this rundll32.exe powrprof.dll,SetSuspendState 0,1,0, not quite user friendly to be honest! 😃

Screenshot taken from the twitter conversation showing how we could prioritize the UI for common Windows system commands above the search result.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
GreenMan36commented, Jun 5, 2020

I’ve done this as a workaround for now: Using similar and identical commands as posted above. Added a /f to most. I can just type them and for those who don’t show up at the top I can start with /<command> instead. Works perfectly! Make sure to put these in folders that are getting indexed. You can pretty much do anything this way.

2reactions
crutkascommented, May 13, 2020

It is coming in 0.18 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run commands at shutdown on Linux
Linux and Unix systems have long made it pretty easy to run a command on boot. Just add your command to /etc/rc.local and...
Read more >
PsShutdown - Sysinternals
PsShutdown is a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do much ......
Read more >
How to boot, shut down, and suspend your system from the ...
The shutdown command features two options: --halt and --poweroff . The --halt option stops the operating system while the --poweroff option ...
Read more >
How to use shutdown command tool on Windows 10
Open Start. · Search for Command Prompt, right-click the top result, and select the Run as administrator option. · Type the following command...
Read more >
How can I tell if I have permission to run a particular ...
The simplest case is that of a binary executable like gzip . First, we locate the executable: $ which gzip /bin/gzip.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found