From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 48B851F990 for ; Wed, 5 Aug 2020 21:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726209AbgHEVQL convert rfc822-to-8bit (ORCPT ); Wed, 5 Aug 2020 17:16:11 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51328 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgHEVQK (ORCPT ); Wed, 5 Aug 2020 17:16:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id p14so7030834wmg.1 for ; Wed, 05 Aug 2020 14:16:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SeCjFiPzu1WZgk+B3woTQQtv2Y+CvoXfusvvPUyD8X8=; b=ohI1tKixDnL4aFQOSMhtCzCyHmmrlbKCLS3OdcpQTWT5bhEU9LDaqK5ihesQojOl5y AXV75a3pxTnkHIjDrSQ9uugJhhiHHG89TTPmwix9dV5yC7KJseOVpx/CJksi0SdWijGP TsEgv44l1/hkSldOPql22UOsaowSjubxtOz1NMPp+uX1JgNGD2PporwBMRO0HxyA4yGN V75JN+Q6PSMW1RRWn6pwDF4D60qckl35Bb6dqw7X3eta3qLIQz9m3zEDdqvxBiqu+71M c7wmmFL29Iv1rm18mvuqumf9DR1i6DzcenX446xLySjK6e9TZsbYM8a6rzUC6VOOFute LqOQ== X-Gm-Message-State: AOAM531rSD/wyLlje4wNSster5IX8sItDInYiRYfuxQ/hR1hXJM6z0QR uG9suAuPkwUsuwG1oL0YMKS1w0Nyijddw/d+1FWYIGaAHWk= X-Google-Smtp-Source: ABdhPJyEQj3oJsK/7jXWsbWvHDVYHCttdbX+atBczgGkJnciog6tiPpxFBNeinVXpXPcY///l9Zf5yb7TyWbNsfR4Kc= X-Received: by 2002:a1c:740c:: with SMTP id p12mr4748241wmc.53.1596662168700; Wed, 05 Aug 2020 14:16:08 -0700 (PDT) MIME-Version: 1.0 References: <37090d232221415b227c165bd44f6711d21f376b.1596634463.git.gitgitgadget@gmail.com> In-Reply-To: <37090d232221415b227c165bd44f6711d21f376b.1596634463.git.gitgitgadget@gmail.com> From: Eric Sunshine Date: Wed, 5 Aug 2020 17:15:57 -0400 Message-ID: Subject: Re: [PATCH 3/3] mergetool-lib: give kdiff3 prioirty in KDE environments To: =?UTF-8?Q?Marco_Trevisan_=28Trevi=C3=B1o=29_via_GitGitGadget?= Cc: Git List , =?UTF-8?Q?Marco_Trevisan_=28Trevi=C3=B1o=29?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Aug 5, 2020 at 4:02 PM Marco Trevisan (Treviño) via GitGitGadget wrote: > mergetool-lib: give kdiff3 prioirty in KDE environments s/prioirty/priority/ > Signed-off-by: Marco Trevisan (Treviño) > --- > diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh > @@ -288,12 +288,15 @@ list_merge_tool_candidates () { > - cross_desktop_tools="opendiff kdiff3 tkdiff xxdiff" > + cross_desktop_tools="opendiff tkdiff xxdiff" > if is_desktop "GNOME" > then > - tools="meld $cross_desktop_tools $tools" > + tools="meld $cross_desktop_tools kdiff3 $tools" > + elif is_desktop "KDE" > + then > + tools="kdiff3 $cross_desktop_tools meld $tools" > else > - tools="$cross_desktop_tools meld $tools" > + tools="$cross_desktop_tools kdiff3 meld $tools" > fi Wouldn't this change the behavior for people running old KDE which doesn't have XDG_CURRENT_DESKTOP, giving "kdiff3" much lower priority than it had before? This change also illustrates why I wasn't convinced that patch 2/3 was necessarily a good idea. When you touch 'cross_desktop_tools' here, you end up having to touch all the other 'tools=' lines anyhow, so the introduction of 'cross_desktop_tools' didn't buy much in terms of reduced maintenance cost.