Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

How to create Desktop Shortcut in Windows? #204

Closed
levirs565 opened this issue Jan 10, 2021 · 4 comments
Closed

How to create Desktop Shortcut in Windows? #204

levirs565 opened this issue Jan 10, 2021 · 4 comments

Comments

@levirs565
Copy link
Contributor

I am install guiscrcpy with pip. I am using python3. How to create desktop shorcut?. I am using Windows 10

@srevinsaju
Copy link
Owner

Currently, I am looking for a method to do that too. One solution is to create a batch script

  1. Open notepad or any other text editor
  2. Type into it
python -m guiscrcpy.cli
  1. Save it as guiscrcpy-launcher.bat, don't forget to select All Files (.*) in the save drop down menu, otherwise your batch script will be saved as .txt format.
  2. Now, double click on this batch script and see if it works.
  3. It works? 🎉
  4. Right click > Add shortcut to desktop
  5. Set Icon and enjoy

@levirs565
Copy link
Contributor Author

levirs565 commented Jan 10, 2021

I found that GuiScrCpy has a built-in shortcut maker. I run python, then type this:

from guiscrcpy.platform.windows_tools.tools import make_shortcut
make_shortcut()

Shortcut Will created in desktop and application list. However there are problems like the following

  • The icon file guiscrcpy/ui/icons/guiscrcpy_logo_SRj_icon.ico not found. This because the file is not shipped in package. This make shortcut does not have an icon. Ship this file in package should fix this problem.
  • A console window (cmd.exe) is appear

@srevinsaju
Copy link
Owner

I found that GuiScrCpy has a built-in shortcut maker. I run python, then type this:

cool

from guiscrcpy.platform.windows_tools.tools import make_shortcut
make_shortcut()

Shortcut Will created in desktop and application list. However there are problems like the following

  • The icon file guiscrcpy/ui/icons/guiscrcpy_logo_SRj_icon.ico not found. This because the file is not shipped in package. This make shortcut does not have an icon. Ship this file in package should fix this problem.

The icon is shipped with the package. See this

  • A console window (cmd.exe) is appear

Don't know why. Any solutions?

@levirs565
Copy link
Contributor Author

I have create pull request to fix this issue #205

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

No branches or pull requests

2 participants