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

chore: Update warp terminal open_local_terminal_in_uri functionality #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iorveth
Copy link

@iorveth iorveth commented Jan 21, 2025

Problem

After installing https://github.com/Stunkymonkey/nautilus-open-any-terminal/releases/tag/0.6.0 from .deb file on ubuntu 24.04.1 LTS i set terminal to warp via dconf-editor and it did not work out of box for nautilus file manager on my setup.

To be more specific, it did not work with adding new tabs to the terminal, only new windows opened, despite the setup for tabs in dconf-editor.
I had to pull sources & update open_local_terminal_in_uri functionality a little.

Comment on lines +242 to +246
action_type = "tab" if _gsettings.get_boolean(GSETTINGS_NEW_TAB) else "window"
Popen([
"xdg-open",
f'warp://action/new_{action_type}?path={result.path}'
])
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
action_type = "tab" if _gsettings.get_boolean(GSETTINGS_NEW_TAB) else "window"
Popen([
"xdg-open",
f'warp://action/new_{action_type}?path={result.path}'
])
Popen( # pylint: disable=consider-using-with
["xdg-open", f"warp://action/new_{"tab" if new_tab else "window"}?path={result.path}"]
)

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

Successfully merging this pull request may close these issues.

2 participants