-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Launch Diff Tool does not work for resolving merge conflicts under Xfce #524
Comments
Does it work if you configure yours to use xterm? We need to be able to launch a terminal and a sub-command within it. Not all terminals support this. If you know the secret sauce for xfce4-terminal then we could look into special-casing it. |
I was able to get it to work with xterm once I installed xterm and explicitly set cola.terminal to use it.
fails with the error reported above, however:
does work correctly and launches kdiff3 as expected. |
This same issue also made it so that gnome-terminal is usable. konsole and xterm, from an outsider's perspective, have the most sane handling for the We now special-case these so at least it works. Thanks for the help. |
No worries. I forgot to mention any existing quotes within the command string will need to be escaped. |
Would you mind testing the latest "master" branch and see if it's better behaved? It should do the right thing. |
I gave master a quick spin and it looks like it works ok now. I didn't have conflicted file with embedded quotes in the name handy so I wasn't able to check if that scenario was handled correctly, but that's probably a pretty rare use case. |
I'm using linux mint 17.2 with the Xfce desktop and git-cola 2.4. I've configured kdiff3 as my diff tool and merge tool.
In a 'merge with conflicts' scenario, selecting 'Launch Diff Tool' on a staged file with no-conflicts will successfully launch kdiff3. However, selecting 'Launch Diff Tool' on an unmerged file with conflicts fails to launch kdiff3. The error in the git-cola terminal is:
#354 raised the issue that git-cola has an undocumented dependency on xterm, which commit 6b55a71 was supposed to fix but it looks like xfce4-terminal is unable to parse the command used to launch kdiff3 in 3-way merge mode when xterm is not available.
The text was updated successfully, but these errors were encountered: