delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/10/20/04:13:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 07F583851C00
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=xmh5CVgy43Mbp1fAMGwyQoo21rMV4rhWq8+kUJNGFTU=;
b=P2f1dWyjP8CiSFv7WwUU7vEmg3xYrj7fIxacMudWic56kMYWVMnfy2Fat/SHi0x/lj
xrt+CqtmsZdmsgCdX2xXhdOVAjm4qTnEklKGw6l9XmCCwhjEfqz/AJQ2kTtnKtGFBN2U
4OEwvFAwimwM4xZrqeotVzCj8e092pVj9+QeYEMq09/JJ5fqzldn5p2YIgtmZ8Wlx/D9
W2bEesl13Ak6mAUVIfA8GX5I7b2fvw+9VzUK3rGhRMYP2w1NBEYahh65qRBDDC86NM8F
YEc/9Vle8DSYKQgpKyV134XPVnykyGELFrj0UrURSvQ9O9Af6Vc6pYpY9SAYXdJ4BQcR
CcvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=xmh5CVgy43Mbp1fAMGwyQoo21rMV4rhWq8+kUJNGFTU=;
b=RKKkMgv9JokJeQThI+Wk0HC1jUC0AkXh1vGUeVe3mCUqj5/7SfYA3SRgcOLGJFPt92
118VkLG8UEk32Lg9Ki7FeFf+qhySP2dh8c5lgr4qVwjOoCIZm479y/DLqPUA6QQd8xGV
Db7n6y/eFQAycVNdHFOaQ+smm8XkBMCGeA8KKxtCG+62D0ior0mDJ3h+EqWvirDbQoC2
rC19BPx9sS3IT1ZDW28uDzZDlODQRdzww8eMB/0HDPXJBypLcTLzQkKKn6GfBpmsyTug
KTeK/zfcbbGvdGTEx1a6Iyo5JjSbczFAc9WMBtyhdrVG7fnu62ic5FAWUmjDdrxv0Vr1
HvsQ==
X-Gm-Message-State: ACrzQf0yYOMn+KCMV03caXqViy8TZNMVcZC+4pe7Y7+F/iTauyPv5Y+g
0lfIodO5qCy9g2P4J6Hro2YpNMwH/bEgbo2424WMXr5G/RQ=
X-Google-Smtp-Source: AMsMyM6QE776uNq/wqZ19fyz/UZCm8QcSA6cy2lkH1CyvRWCBPmYIkkq/Du0qqwj5VciX9w2DEKWNs7cTf2u6NmsXqs=
X-Received: by 2002:a17:902:c7ca:b0:181:927a:9449 with SMTP id
r10-20020a170902c7ca00b00181927a9449mr12951725pla.11.1666253543076; Thu, 20
Oct 2022 01:12:23 -0700 (PDT)
MIME-Version: 1.0
References: <20221019065805 DOT GA17124 AT tik DOT uni-stuttgart DOT de>
<CAKwdsS-QwFxpB0pG+3QCvjipHuB-e09sdGFJH01AG3YaVL7CeA AT mail DOT gmail DOT com>
<20221019125842 DOT GA1210 AT tik DOT uni-stuttgart DOT de>
<20221020005205 DOT 00000623 AT online DOT de>
<ff0483b8-f052-c927-5e8a-ea12a6d33f7b AT gmx DOT com>
In-Reply-To: <ff0483b8-f052-c927-5e8a-ea12a6d33f7b@gmx.com>
From: Backwoods BC <completely DOT and DOT totally DOT trash AT gmail DOT com>
Date: Thu, 20 Oct 2022 01:12:11 -0700
Message-ID: <CAKwdsS-Yd+YdEtn-S1Qv1a44ggJpH=UpeKb1PxEAVkHP=9xkOA@mail.gmail.com>
Subject: Re: substitute for xclip?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Thu, Oct 20, 2022 at 12:27 AM Sam Edge <sam DOT edge DOT cygwin AT gmx DOT com> wrote:
> On 19/10/2022 23:52, Oliver Schoede wrote:
> > Hi!
> >
> > On Wed, 19 Oct 2022 14:58:42 +0200
> > Ulli Horlacher <framstag AT rus DOT uni-stuttgart DOT de> wrote:
> >> https://fex.rus.uni-stuttgart.de/fop/jFZ6T7wI/X-20221019141237.png
> >>
> >> I have selected [copy] in the file browser, but /dev/clipboard is
> >> empty. Also getclip gives me no output.
> >>
> >
> > It looks to me like you copied the file, not the file name?
> >
> To clarify the above, Windows has a non-text clipboard data type when
> 'copying' a file in the File Explorer which encodes additional
> information other than its path. This is to allow the equivalent 'paste'
> function in Explorer and other file-accepting GUI applications to work
> more intelligently. Unfortunately, Cygwin's /dev/clipboard and
> get/putclip only process text formats.
>
> I imagine your X file manager is simply copying a textual representation
> of the file path to the clipboard when you choose 'copy' which of course
> can be extracted by scripts etc. It appears that Windows Explorer
> doesn't also place a textual representation onto the clipboard (the
> Windows clipboard allows multiple representations to exist
> simultaneously) which is what would be required for Cygwin to use it at
> present.
>
> --
> Sam Edge

You can force Windows Explorer to copy the path by doing
SHIFT-RightClick on the filename and selecting "Copy as path."

The next hurdle that you'll run into is that the clipboard contents
will be in Windows/DOS format (c:\folder\filename) while Cygwin will
most often expect it in *nix format (cygdrive/c/folder.filename).
'cygpath' is your friend. Sometimes (not clear exactly when) Cygwin
will accept the Windows path, but I always convert it to *nix format
to avoid unpleasant surprises later.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019