hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.35k stars 432 forks source link

Add copyq to PATH environment variable #1018

Open nmat opened 5 years ago

nmat commented 5 years ago

Since copyq can be triggered with copyq.exe and use it for coding like in a python script etc.

Adding copyq to PATH or some other environment variable would ease the use to call the application. At the moment you have to use the complete search path to call the binary. (powershell today is rather smart when it comes to environment variables so it would help)

hluk commented 5 years ago

It's probably possible by modifying the Inno Setup file -- here is how to do it.

Unfortunately, I currently don't have access to Window machine, so help is appreciated.

scottkosty commented 5 years ago

@nmat isn't it usually the opposite? I know nothing about Windows, but isn't the copyq binary installed into a directory that is already included in the PATH? Or on Windows, this is really the responsibility of each individual application?

nmat commented 5 years ago

@scottkosty AFAIK the application gets installed in Program Files/Program Files(x86) which is not in the path unless you specify it. Of course I can add it myself. However a option to add copyq to path due to it having options for commandline would make that easier.

scottkosty commented 5 years ago

@nmat good to know, thanks for the explanation!

nmat commented 5 years ago

@scottkosty As a comparison, installing python for example there is a question to add python to the PATH environment variable. So I would guess the same could go for copq install.

hluk commented 5 years ago

Perhaps we can use the code vscode already uses. But it looks overly complicated.