X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 417513858422
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1689797196;
	bh=41/erZoyzSBMc380CKYPe11GsMJ45lAQi7OiEbxoIaY=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=SgthJQ3pvZ995xG+D/OU9gc45vW2PK1c5ahb20sUGFmOwfv+X+wEZM02l9X3oT3HQ
	 U+b0HKxtMIWUxsrQ9HRujx9GIpgjytUo81kAdppEKeWss9RbNtVJHMLkHPmuhT4uwS
	 ogsodMurpwfv8aO/5ExMsUETXEu3xDLXqOA0BUKw=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 573033858C2B
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1689797178; x=1690401978;
 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=bynaruu/l+GBzOhyYNucv1bz5cONYPdS8KuDC+gaOZM=;
 b=IL14atGOPDK7bcV/60vSP1CLMIGBpVMxZfa5RPRHf8gNWWkvBebEYIY5mVO5adQQJX
 YlamB0yFTOYuKPYPqajNEJr2VbIxftf55VuTAF3E9i8x23B7CA+GAU6eNIVF6wZS3ERO
 LsLAOmcKa8+NOViNFAtGIGWN7j8phXA4d0CEMFLzWtzJOVU0kc47NO/boQQ2PhVA4TZr
 twjigTB8dZWapLHU8aMn5ddtmzaBhvzq7CITSTFeT1UAMVlljc1p30kM2LIIgNkCpOOX
 gD4wzx9u8VkYAFx2behB0+QCT+0tPvxspDvPZFP2tvDEdCxvLzGFghWHpSP/bDFx7TvO
 peEQ==
X-Gm-Message-State: ABy/qLbXMpvqacddyeayyZAUa+Q1iKmuUbkKvASmBonF+v7tfOkX3kPj
 ErTZDVmZN5uYHpR/m94LAN1ESv6825xKWsf2ehOXfC7S
X-Google-Smtp-Source: APBJJlGWQcR4vGgvLeioWAfDgvy477wKB+4rdKkh6lUJC/dYBgXwapTmHo03ax8iEQikuIeuH7UwMGMfFyjfIqeBuYc=
X-Received: by 2002:a81:6586:0:b0:56f:fa68:2e34 with SMTP id
 z128-20020a816586000000b0056ffa682e34mr6026571ywb.35.1689797178394; Wed, 19
 Jul 2023 13:06:18 -0700 (PDT)
MIME-Version: 1.0
References: <CAJ8X7ET-mPr+y+P3VHyRLuqWCc_6zrRhG1uz83uC3XKu=BnRRw@mail.gmail.com>
 <20230719181510.57ca759a683ed3cc47dde1ae@nifty.ne.jp>
 <MW4PR84MB16847207A4B1B3340B98612AFE39A@MW4PR84MB1684.NAMPRD84.PROD.OUTLOOK.COM>
 <f65cb54d-6af7-cf36-6f55-14554bb51711@Shaw.ca>
In-Reply-To: <f65cb54d-6af7-cf36-6f55-14554bb51711@Shaw.ca>
Date: Wed, 19 Jul 2023 23:06:07 +0300
Message-ID: <CAJ8X7ETTL2Y+u+8bpVTAoC+547AS_uSPd9k2Gui2VTeAu1i0Dg@mail.gmail.com>
Subject: Re: Cygwin64 does not show my desktop directories
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE 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-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.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@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Orit Heimer via Cygwin <cygwin@cygwin.com>
Reply-To: Orit Heimer <heimer.orit@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 36JK6b3h007252

Thank you both so much!
This is very helpful.
Orit.

On Wed, 19 Jul 2023 at 22:17, Brian Inglis <Brian.Inglis@shaw.ca> wrote:

> On 2023-07-19 11:20, Voris, Ben via Cygwin wrote:
> >> -----Original Message-----
> >> From: Takashi Yano <takashi.yano@nifty.ne.jp>
> >> Sent: 19 July 2023 03:15
> >> To: cygwin@cygwin.com
> >> Cc: Orit Heimer <heimer.orit@gmail.com>
> >> Subject: Re: Cygwin64 does not show my desktop directories
> >>
> >> On Wed, 19 Jul 2023 11:52:31 +0300
> >> Orit Heimer wrote:
> >>> Hello to all,
> >>> I am new to Cygwin64 and encountered a problem.
> >>> I am using a Windows 10.
> >>> I try to get cygwin64 to show my desktop directories.
> >>> I use the following command to change to this directory:
> >>> *cd /cygdrive/c/Users/Default/Desktop*
> >>> But when I then use *ls* I get nothing.
> >>> I suspect this is a permission problem, but I failed to overcome it.
> >>
> >> The directory you cd'ed is not correct.
> >> Use:
> >> /cygdrive/c/Users/$USER/Desktop
> >>
> >> --
> >> Takashi Yano <takashi.yano@nifty.ne.jp>
> >
> > If you can "cd" to a directory and "ls" shows it empty, permissions
> > are unlikely to be the problem.
> >
> > Though the original example used "C:", the Windows desktop need not
> > be on the C: drive. Assuming you're using bash, a more general command
> > is:
> >
> > cd "${USERPROFILE}/Desktop"
> >
> > - Quoted because doing that helps to remind me that its safer.
> > - ${USERPROFILE} because it includes the Windows drive.
> > - "Desktop" instead of "desktop" because, though case-sensitivity is
> >    usually not enabled, the directory name is "Desktop".
> >
> > Also, it is possible that the directory that Windows Explorer shows
> > as your desktop is something entirely different. For example, if you
> > use OneDrive to mirror your desktop, the directory that Windows
> > Explorer shows is "${OneDrive}/Desktop". And, at least on my system,
> > Here, the quotes are necessary.
> >
> > I believe that OneDrive isn't the only thing that can change the
> > "real" location of what Windows Explorer shows:
> >
> > The following command should always work but will emit
> > "bash: warning: command substitution: ignored null byte in input".
> > In case email makes a mess of the command, it is 128 characters.
> >
> > ls -ld "$(cat
> "/proc/registry/HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/User
> Shell Folders/Desktop")"
>
> Does not always work:
>
>         $ regtool get
> "/proc/registry/HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/User
>
> Shell Folders/Desktop"
>         %USERPROFILE%\Desktop
>
> to get absolute canonical path use:
>
>         $ cygpath -aUD
>         /proc/cygdrive/c/Users/.../Desktop
>
> or for All users:
>
>         $ cygpath -aAUD
>         /proc/cygdrive/c/Users/Public/Desktop
>
> For more useful known folder options see:
>
>         $ man cygpath
>
> For Windows known folder ids (CSIDL) use:
>
>         $ cygpath -aUF $id      # 0...63
>
> See links below and attached logs for more details about those known
> folders:
>
>         https://learn.microsoft.com/en-us/windows/win32/shell/csidl
>
>
> https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
>
> --
> Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada
>
> La perfection est atteinte                   Perfection is achieved
> non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to
> add
> mais lorsqu'il n'y a plus rien à retirer     but when there is no more to
> cut
>                                  -- Antoine de Saint-Exupéry

-- 
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

