Issue #2 resolved

fails to find w32toggletitle.exe

Sridhar Ratnakumar
created an issue

{{{ w32-fullscreen-toggle-titlebar: Searching for program: no such file or directory, w32toggletitle.exe }}}

.. which is surprising as this file exists along side darkroom-mode.el itself.

Comments (8)

  1. phromo Martin repo owner
    • changed status to open

    The default search path is within the working directory, which might be emacs directory or the file you're editing. To make sure w32toggletitle.exe is found place it either in your system's PATH (c:\windows\system32 for example) or edit darkroom-mode.el to contain the absolute (full) path to where you placed w32toggletitle.exe

  2. Sridhar Ratnakumar reporter

    Ok, I actually had to edit `w32-fullscreen.el` to place the absolute (full) path to w32toggletitle.exe, but now I get this error:

    w32-fullscreen-toggle-titlebar: Searching for program: no such file or directory, C:\windows\system32\w32toggletitle.exe
    

    Whoa, really? That path actually exists.

  3. Sridhar Ratnakumar reporter

    Ok, I found the root cause. I should've copied that .exe into c:\windows\syswow64 and now it works.

    Of course, on Windows 7 "M-x darkroom-mode" effectively does nothing (except for modeline color change). I still see the title bar (but without close/maximize buttons) and the windows taskbar still remains there.

  4. phromo Martin repo owner

    My best guess is that you're running into a 64-bit windows 32-bit emulation. Having placed your files in the system32 folder and running under 32-bit emacs, the folder actually available is not system32 but a folder called syswow64 ..

    Windows is a bit strange, but the syswow64 folder is what 32-bit applications see as the system32 folder.

    So, the solution is; copy into syswow64 folder instead of system32. Should solve it, whether you are using an absolute or just the short path.

    See http://en.wikipedia.org/wiki/WoW64 for more info.

  5. phromo Martin repo owner

    It's too late for me, didn't read your last post :)

    However... I use 64-bit w7 and w32toggletitle works fine. I don't know where to begin to help you though, perhaps you could get the source code for w32toggletitle, and if you find it post a patch?

  6. Log in to comment