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

What is Macbook Application Bundle ID for Scrcpy #3684

Open
yerenutku opened this issue Jan 20, 2023 · 9 comments
Open

What is Macbook Application Bundle ID for Scrcpy #3684

yerenutku opened this issue Jan 20, 2023 · 9 comments

Comments

@yerenutku
Copy link

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?

@yerenutku yerenutku changed the title Macbook App Identifier for Scrcpy What is Macbook Application Bundle ID for Scrcpy Jan 20, 2023
@BenMorrisRains
Copy link

+1 would love to know this as well.

@rom1v
Copy link
Collaborator

rom1v commented May 11, 2023

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. 🤷

@lwouis
Copy link

lwouis commented Jul 2, 2023

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:

  • Every app should have a Bundle ID. It's a unique string which identifies the app. Developers are free to pick the one they want. People tend to use the Java pattern of com.company.app.
  • People typically add an Info.plist in their .app. That files has an entry for the Bundle ID. Here is how to embed one into a single-file (e.g. a binary)

@rom1v
Copy link
Collaborator

rom1v commented Jul 2, 2023

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
Copy link

lwouis commented Jul 2, 2023

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
Copy link

@GentlemanHu
Copy link

+1 😃

image

@ShlomoCode
Copy link

@GentlemanHu Scrappy has it's own flag for this

@GentlemanHu
Copy link

@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

ianyh/Amethyst#1388

image

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

6 participants