procmon doesn't capture cygwin's process arguments

2020-11-01 Thread Oleksandr Gavenko via Cygwin
I tried to find out what processes emacs-w32 is starting for my custom TRAMP method. "strace -f emacs-w32" fails. I expected to succeed with procmon & its filter " Command/ Process Start". Unfortunately procmon [1] doesn't report "argv" if a Cygwin executable is started from a Cygwin executable.

Re: procmon doesn't capture cygwin's process arguments

2020-11-02 Thread Oleksandr Gavenko via Cygwin
Andrey Repin wrote: > > * https://cygwin.com/cygwin-ug-net/using-cygwinenv.html > Yes, it's in CYGWIN=wincmdln Thx. So I was tired enough not to spot that option even when there is a keyword "argv" on the page (( > But it's not necessarily accurate. > See the documentation for details. Docs said

Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
I'm using Cygwin for two reasons: mintty + Emacs w32. Nowadays WSL 1 has become important (vendors provide ready to work .deb packages, I use: Ansible + Google Cloud SDK, if name any). Still WSL 1 lacks UI and integrates less smoothly into my workflow to replace Cygwin's amazing Emacs W32. WSL1

Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On Thu, Nov 26, 2020 at 8:42 PM Henry S. Thompson wrote: > > Oleksandr Gavenko via Cygwin writes: > > > ... > > WSL1 files are "hidden" for regular access. > > I probably misunderstand, but I can see my WSL/Ubuntu files via this > path from Cygwin:

Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On Thu, Nov 26, 2020 at 9:22 PM Oleksandr Gavenko wrote: > So Emacs tries to make some "smart" locking on dumb FS... Need to > waste another few hours to make Emacs work. > Found the problem: Emacs fails on its "unlock-buffer" call from emacs/src/filelock.c. Feature described here: https://www.g

Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On 2020-11-26, Eliot Moss wrote: > Lacks UI? You can run X windows applications in WSL if you have the Cygwin X > server running :-) ... > then you get the X UI. I can certainly run xterm and emacs that way. > I don't need 2 Emacs instances around. Cygwin's Emacs W32 (with native W32 GUI widget

Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-28 Thread Oleksandr Gavenko via Cygwin
On 2020-11-27, Eliot Moss wrote: > On 11/26/2020 3:38 PM, Oleksandr Gavenko via Cygwin wrote: > >> I believe that X server under Windows is only to write cool blog posts, that >> we are able to run "xterm" )) > > Not sure what you mean here. I run Cygwin's

Setting env var CYGWIN for Cygwin service?

2020-12-30 Thread Oleksandr Gavenko via Cygwin
Hi! What way can I pass env var "CYGWIN" to the Cygwin service? There are no that many influential options here: https://cygwin.com/cygwin-ug-net/using-cygwinenv.html I can think of "winsymlinks:native" or "wincmdln". Process Explorer shows following env vars for Cygwin's Exim process: PA

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Oleksandr Gavenko via Cygwin
On 2020-12-31, Franz Fehringer via Cygwin wrote: > Cygwin inherits Windows environment variables, this should be the simplest > take. Normally does, no doubt. So I made `srv.c`: #include int main() { sleep(60); } compiled: gcc -o srv.exe srv.c registered: cygrunsrv -I mysr

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Oleksandr Gavenko via Cygwin
On 2020-12-31, Bill Stewart wrote: > cygrunsrv --help shows this: > > -e, --env Optional environment strings which are added > to the environment when service is started. You can add up to 255 > environment strings using the `--env' option. I made experiment few minutes ago (was curious to pa

Re: Setting env var CYGWIN for Cygwin service?

2021-01-04 Thread Oleksandr Gavenko via Cygwin
On 2020-12-30, Oleksandr Gavenko via Cygwin wrote: > What way can I pass env var "CYGWIN" to the Cygwin service? Today I reinstalled Cygwin & Exim. "exim-config" script asked me: Enter the value of CYGWIN for the daemon: [] /usr/bin/exim-config has line with:

Noticed that mintty starts non-login bash with "Win+R mintty Enter".

2021-01-04 Thread Oleksandr Gavenko via Cygwin
I interact with Cygwin via mintty launched as "Win+R mintty Enter". During first launch of "exim-config" script existed with an error: /usr/bin/exim-config: line 447: USER: unbound variable After looking into docs I got that mintty should be launched with a parameter "-". Probably it was alw

Broken dependency: python39-markdown needs python39-importlib-metadata

2023-05-19 Thread Oleksandr Gavenko via Cygwin
I installed python39-markdown and wanted to: import markdown That fails with: File "/home/user/my/blog_md.py", line 5, in import markdown File "/usr/lib/python3.9/site-packages/markdown/__init__.py", line 29, in from .core import Markdown, markdown, markdownFromFile # noqa: E40

Re: [ANNOUNCEMENT] Updated: lighttpd-1.4.70

2023-05-19 Thread Oleksandr Gavenko via Cygwin
On 2023-05-10, Glenn Strauss via Cygwin wrote: > lighttpd 1.4.70: > speed up CGI spawning; native Windows build (experimental); bugfixes What does "native Windows build"? Seems lighttpd is still Cygwin app: $ ldd /usr/sbin/lighttpd.exe cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffef6f9

Re: Noticed that mintty starts non-login bash with "Win+R mintty Enter".

2021-01-16 Thread Oleksandr Gavenko via Cygwin
On 2021-01-07, Kamran via Cygwin wrote: > Even: Win | mintty - > > opens up mintty with admin account. Cool, I use a lot but didn't know you can pass args! -- http://defun.work/ -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentat

Re: Noticed that mintty starts non-login bash with "Win+R mintty Enter".

2021-01-16 Thread Oleksandr Gavenko via Cygwin
On 2021-01-05, Jason Pyeron wrote: > I do not put Cygwin in my windows PATH, (anymore since about 10 years ago). Sometimes it is useful to have GNU utils at hands. I use Far Commander and in order to find directory size I type: du -s -m NAME Also having Cygwin staff in PATH allows to start pr

pylint: ImportError: No module named pkg_resources

2021-01-16 Thread Oleksandr Gavenko via Cygwin
After installing pylint: setup.exe -p pylint I expected I can use the package: pylint /dev/null Traceback (most recent call last): File "/usr/bin/pylint", line 5, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources I tried to add package:

Re: pylint: ImportError: No module named pkg_resources

2021-01-17 Thread Oleksandr Gavenko via Cygwin
On 2021-01-17, Marco Atzeri via Cygwin wrote: > This explain the status problem: > > $ grep -e "pylint" -e "logilab" cygwin-pkg-maint > pylint ORPHANED (Jari Aalto) > python-logilab-astng ORPHANED (Jari Aalto) > python-logilab-common

Python packaging policy?

2021-01-19 Thread Oleksandr Gavenko via Cygwin
I figured it out myself that I have to avoid "python3-*" packages and instead to work with "python36-*" or "python38-*" as "python3-*" packages are marked as "category: _obsolete" in setup.bz2. Are there any docs that describes policy for python packages in Cygwin? I had experience with https://

Re: Access WSL files from cygwin

2021-03-04 Thread Oleksandr Gavenko via Cygwin
On 2021-02-07, Cary Lewis via Cygwin wrote: > Is there a way to access files from a WSL 2 Linux distro from Cygwin? > > From Windows: > > \\wsl$\Ubuntu is accessible from Windows Explorer, but cygwin does not seem > to recogonize: > > //wsl\$ I use following fstab to get access to WSL 1: //wsl$/

Re: Cygwin now on Python 3? What about Mercurial?

2021-04-02 Thread Oleksandr Gavenko via Cygwin
On 2021-03-07, Marco Atzeri via Cygwin wrote: > Mercurial has been just updated to version 5.7 > https://cygwin.com/packages/summary/mercurial.html > > and it now depends on python3.8 Just updated: $ grep mercurial /var/log/setup.log.full Installing file cygfile:///usr/lib/python3.8/site-p

Re: [ANNOUNCEMENT] emacs 27.2-1

2021-04-02 Thread Oleksandr Gavenko via Cygwin
On 2021-03-27, Ken Brown via Cygwin-announce via Cygwin wrote: > 7. The script /usr/bin/make-emacs-shortcut can be used to create a >shortcut for starting emacs. See >/usr/share/doc/emacs/README.Cygwin for details. /usr/bin/make-emacs-shortcut has: mkshortcut --desc="Emacs" \ --ic

Re: [ANNOUNCEMENT] cygwin 3.2.0-1

2021-04-02 Thread Oleksandr Gavenko via Cygwin
On 2021-03-29, Corinna Vinschen via Cygwin-announce via Cygwin wrote: > - Allow to start Windows Store executables via their "app execution > aliases". Handle these aliases (which are special reparse points) > as symlinks to the actual executables. User voice: cool! # ls -l /cygdrive/c/Us

Re: [ANNOUNCEMENT] cygwin 3.2.0-1

2021-04-03 Thread Oleksandr Gavenko via Cygwin
On 2021-04-02, Thomas Wolff wrote: > Note that if you do this within mintty, you will lose a subtle part of the > terminal features by the Windows ConPTY terminal emulation enforced in this > case. I've just tested Midnight Commander, vim, aptitude, than the same all inside tmux and the only prob