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

Determine default applications #51

Open
sdilts opened this issue Oct 27, 2023 · 2 comments
Open

Determine default applications #51

sdilts opened this issue Oct 27, 2023 · 2 comments

Comments

@sdilts
Copy link
Collaborator

sdilts commented Oct 27, 2023

The default keymap will contain bindings to open a terminal, a text editor, and maybe more. Unlike X11, there is no practical guarantee that these apps will be installed on a user's machine.

The best example of this is the terminal emulator. We could assume that XTerm was installed in Stumpwm, but that's not the case for Wayland.

The two options I see are:

  1. Do a search to see if common apps are available (konsole, gnome-terminal, etc.)
  2. Pick one and fail gracefully if it can't be found.

Are there any other alternative ways to handle this?

@bigbookofbug
Copy link

i think the most practical method would be something similar to what dwl does - default bindings for common wayland applications such as bemenu and foot terminal.

the stumpwm "exec" command could definitely be utilized here as well, as it would allow the user to launch their applications still if there's no default binding (i used this in stumpwm when first starting it, as i had alacritty installed but not xterm).

@dangerdyke
Copy link

There's another option, which is reading a default from the $TERMINAL environment variable like hikari does. IMO it would be best to use that as a default and use option 1 as a fallback. It wouldn't do to have the user unable to open a terminal if they don't happen to have foot installed (as I don't)

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

3 participants