Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Switch from hardcodinggnome-terminal to usingxdg-terminal-exec#170

Open
michel-slm wants to merge 1 commit intop-e-w:masterfrom
michel-slm:use-xdg-terminal-exec
Open

Switch from hardcodinggnome-terminal to usingxdg-terminal-exec#170
michel-slm wants to merge 1 commit intop-e-w:masterfrom
michel-slm:use-xdg-terminal-exec

Conversation

@michel-slm
Copy link
Contributor

This is packaged in various Linux distros already:https://repology.org/project/xdg-terminal-exec/versions

and we can't assume thatgnome-terminal is preinstalled anymore (CentOS Stream 10, RHEL 10 and derivatives, Fedora 47+ and Ubuntu have switched to ptyxis by default)

(not sure why the openSUSE version number is weird)

leoherzog reacted with thumbs up emoji
This is packaged in various Linux distros already:https://repology.org/project/xdg-terminal-exec/versionsand we can't assume that gnome-terminal is preinstalled anymore (CentOS Stream 10, RHEL 10 and derivatives, Fedora 47+ and Ubuntu have switched to ptyxis by default)(not sure why the openSUSE version number is weird)Signed-off-by: Michel Lind <salimma@fedoraproject.org>

For GNOME 45 and newer, you need `xdg-terminal-exec` since on newer GNOME
releases we cannot assume `gnome-terminal` is preinstalled.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

AFAICS thexdg-terminal-exec is still a proposal, and not an accepted standard.

This may work on new installations, but has high potential of breaking existing ones. I, for one, use a openSUSE Tumbleweed, and while my distro is fully up to date, I don't havexdg-terminal-exec on my system.

Side note: There is no Fedora 47, and the openSUSE "version number" (I suppose you're referring to Tumbleweed, which is a rolling distro) is just date expression.

// Run shell immediately after executing the command to keep the terminal window open
// (see http://stackoverflow.com/q/3512055)
argv = ["gnome-terminal", "--", "bash", "-c", activeLine.bash + "; exec ${SHELL:=bash}"];
argv = ["xdg-terminal-exec", "--", "bash", "-c", activeLine.bash + "; exec ${SHELL:=bash}"];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For now, I'd only accept a commit that would test ifxdg-terminal-exec was available and fall back tognome-terminal otherwise.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mwilckmwilckmwilck requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@michel-slm@mwilck

[8]ページ先頭

©2009-2026 Movatter.jp