Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
113.19k stars 10.8k forks source link

What is Macbook Application Bundle ID for Scrcpy #3684

Open yerenutku opened 1 year ago

yerenutku commented 1 year ago

Hi, I am running scrpy on a macbook iTerm2 and I am looking for the Application Bundle ID of scrcpy however I couldn't find it anywhere.

I needed to know to exclude the window from resizing via window manager app called Amethyst (an app to organize your windows with shortcuts).

I am running scrcpy on iTerm2 however adding com.googlecode.iTerm2 into list doesn't work for scrcpy but it works for all other windows of iTerm2. I named my window of scrcpy via scrcpy --window-title='Scrcpy' however that didn't help either. image

I also tried using checking activity monitor, using the identifier that is scrcpy however adding that also didn't work.

Analysis of sampling scrcpy (pid 62469) every 1 millisecond
Process:         scrcpy [62469]
Path:            /opt/homebrew/*/scrcpy
Load Address:    0x104718000
Identifier:      scrcpy

Can anyone help me to find Application Bundle ID for scrcpy?

BenMorrisRains commented 1 year ago

+1 would love to know this as well.

rom1v commented 1 year ago

There is no Application Bundle ID.

After some quick search, it seems it's an ID to register from Apple (but I'm not sure). It seems it's a property to set in XCode, but scrcpy is not built with XCode. :shrug:

lwouis commented 1 year ago

I'm not familiar with scrcpy, and the docs on how to build or the FAQ didn't make it clear to me at a glance how it's packaged for macOS.

That being said, I can probably clarify some useful concepts for the macOS release:

rom1v commented 1 year ago

Thank you for the details.

it's packaged for macOS.

It's not really "packaged" for macOS, it's just a command line application (like ls, cat, find…).

Every app should have a Bundle ID.

How do you provide an Apple Bundle ID when you build an app with "standard" tools like meson and gcc/clang (without Xcode or other proprietary Apple stuff)?

For example, for Windows, there is a scrcpy-windows.rc to provide some metadata, which is processed by meson here. Is there a way to do something similar for Apple?

lwouis commented 1 year ago

I'm not familiar with meson, so I'm afraid I can't help here. The link I shared shows how to do essentially what you are doing for windows with the .rc file, and the meson script, but with a .plist file and the native XCode way. There's probably a way to have meson do that, but I'm not familiar enough.

ShlomoCode commented 3 weeks ago

https://mesonbuild.com/Creating-OSX-packages.html

GentlemanHu commented 4 days ago

+1 😃

image
ShlomoCode commented 4 days ago

@GentlemanHu Scrappy has it's own flag for this

GentlemanHu commented 4 days ago

@GentlemanHu Scrappy has it's own flag for this

Thanks bro.

The problem is not about pinned on the top, but that the window will automatically enlarge and the window will be reorganized by window manager.

image

But I found other solutions

https://github.com/ianyh/Amethyst/pull/1388

image