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

Questions about uwsm app #53

Closed
fufexan opened this issue Nov 8, 2024 · 4 comments
Closed

Questions about uwsm app #53

fufexan opened this issue Nov 8, 2024 · 4 comments

Comments

@fufexan
Copy link

fufexan commented Nov 8, 2024

I've been in the process of integrating uwsm into my desktop experience since the discussion in Hyprland. So far I've done the first part, aka starting Hyprland via uwsm. The second part would entail launching apps through uwsm app.

I currently use anyrun as my runner. It does not have a --launch-prefix option like fuzzel does, but I've been integrating it myself. I've hit a roadblock in deciding whether to pass Exec or the Desktop Entry path to uwsm app -- (or the launch_prefix, to be precise). Is there any benefit to using one over the other?

The next question would be how to handle starting terminal applications from anyrun:

  1. sh -c ${terminal} -e ${launch_prefix} ${entry.exec} (or ${entry.path}, if that's more appropriate)
  2. sh -c ${launch_prefix} ${terminal} -e ${entry.exec}
@Vladimir-csp
Copy link
Owner

Command line or Desktop Entry: the main difference is resulting unit's metadata. If Desktop Entry is given, its Name and Comment are used, plus arguments are parsed according to the spec if the entry has fields for them.
Also uwsm app and app2unit have terminal support (if Entry has Terminal=true, or -T argument is given, app will be launched in deafault terminal according to a proposed spec).

Is using path to entries a NixOS thing? ID is usually enough.

@fufexan
Copy link
Author

fufexan commented Nov 8, 2024

Is using path to entries a NixOS thing? ID is usually enough.

No, it's just that anyrun already has the path, but not the ID (basename).

Also uwsm app and app2unit have terminal support (if Entry has Terminal=true, or -T argument is given, app will be launched in deafault terminal according to a proposed spec).

If this is the case, then I'll make another uwsm-specific application plugin rather than try to modify the current one.

@Vladimir-csp
Copy link
Owner

No, it's just that anyrun already has the path, but not the ID (basename).

Ah, ok, in this case the path is preferable, no need to search the entry if file is already known.

@fufexan
Copy link
Author

fufexan commented Nov 8, 2024

Thanks for the clarifications!

@fufexan fufexan closed this as completed Nov 8, 2024
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

2 participants