From: Joachim E. <Joa...@gm...> - 2013-04-24 12:16:39
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div>Hi Dritan,</div> <div> </div> <div>The kdiff3-qt package also provides a binary "/usr/bin/kdiff3". So it conflicts with the default package and only one can be installed at the same time.</div> <div>So running "kdiff3" is correct.</div> <div> </div> <div>If it can't connect to the X server then probably because you are running as root and your system is not set up to use the X-server.</div> <div>Try to run kdiff3 as normal user.</div> <div> </div> <div>Regarding the automerge: If it is sufficient that kdiff3 just terminates without saving anything, then I can provide a --no-gui option in a future version.</div> <div> </div> <div>Joachim</div> <div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 24. April 2013 um 07:45 Uhr<br/> <b>Von:</b> "Dritan Latifi [Motrada IT]" <dri...@mo...><br/> <b>An:</b> "Joachim Eibl" <joa...@gm...><br/> <b>Betreff:</b> Re: [Kdiff3-user] Running kdiff3 without KDE</div> <div name="quoted-content"> <div style="background-color: rgb(255,255,255);"> <div class="moz-cite-prefix">Hi Joachim,<br/> <br/> thanks for your answer.<br/> <br/> <br/> <font color="#3366ff">> The kdiff3-qt is the prebuilt KDE-independant package for all Debian systems. Yet if it does not run, please provide the output when run from a console.<br/> > If it is not installed try "sudo apt-get install kdiff3-qt".</font><br/> <br/> 1. :~$ apt-get install kdiff3-qt<br/> Reading package lists... Done<br/> Building dependency tree <br/> Reading state information... Done<br/> kdiff3-qt is already the newest version.<br/> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br/> 2. :~$ kdiff3<br/> kdiff3: cannot connect to X server<br/> :~$ kdiff3-qt<br/> -bash: kdiff3-qt: command not found<br/> <br/> <font color="#3366ff">> The exit code is 0 if the merge result was saved without conflicts and 1 if the merge was aborted manually and no result was saved.</font><br/> <br/> What kind of user interaction is needed on exit code 1 if KDiff3 runs without KDE?<br/> <br/> <font color="#3366ff">> Currently it is not possible that KDiff3 will automatically exit if conflicts cannot be solved automatically.</font><br/> <br/> Pity that is not possible. I hoped I could start KDiff3 without user interaction, because I hoped I could integrate KDiff3 in my automerge-script, which does run automatically. Only if conflicts happen the script will mail me.<br/> <br/> <br/> <br/> Best regards,<br/> Dritan<br/> <br/> Am 2013-04-23 22:27, schrieb Joachim Eibl:</div> <blockquote> <style type="text/css"><!--p, li { } --></style> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Hi Dritan,</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">You can build and run kdiff3 without KDE.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">The kdiff3-qt is the prebuilt KDE-independant package for all Debian systems. Yet if it does not run, please provide the output when run from a console.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">If it is not installed try "sudo apt-get install kdiff3-qt".</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Regarding your problem: KDiff3 provides an "--auto" command line option that will not show any windows if all conflicts were automatically solved.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">But if some conflicts were not solved then the KDiff3-window will appear.</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">The exit code is 0 if the merge result was saved without conflicts and 1 if the merge was aborted manually and no result was saved.</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Currently it is not possible that KDiff3 will automatically exit if conflicts cannot be solved automatically.</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">So unless it is very important that your script runs completely without user interaction KDiff3 can help if you solve your conflicts immediately.</p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Best regards,</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Joachim</p> <p> </p> <p> </p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Am Dienstag, 23. April 2013, 07:55:59 schrieb Dritan Latifi [Motrada IT]:</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Hi,</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> is there a possibility to run kdiff3 without KDE? I saw "kdiff3-qt" but</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> I still can not run it on Debian Server.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Why I need this?</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> I have an automatic script to merge 2 different branches. When there is</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> a conflict I get an email.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Often there are conflicts which can be automatically resolved by kdiff3.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> (</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> <a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/16086484/conflict-when-merging-two-branch" target="_blank">http://stackoverflow.com/questions/16086484/conflict-when-merging-two-branch</a></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> es-with-git )</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> There fore I would need to run kdiff3 if my script detected conflicts.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Then kdiff3 would exit with code 0 (zero) if it has resolved</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> automatically the conflict and would exit with code other then 0 if it</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> could not resolved the conflict and then I have to resolve the conflict</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> manually.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Is this kind of usage already possible? If not, is it planed to be</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> implemented?</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> FYI: I'm new to kdiff3.</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Best regards,</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">> Dritan</p> <p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">></p> </blockquote> </div> </div> </div> </div> </div></div></body></html> |