Community
    • Login

    Admin vs. non-Admin inconsistency?

    Scheduled Pinned Locked Moved General Discussion
    12 Posts 4 Posters 550 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterJonesP
      PeterJones @Alan Kilborn
      last edited by

      @Alan-Kilborn ,

      I just replicated the process, and agree with your results.

      Personally, I’ve never understood why Admin-mode would prevent drag-and-drop; it would be nice if they figured out how to allow that to work into an Admin window. But I’d suggest pointing to this thread as a workaround when people want to drag-and-drop into admin mode. :-)

      While running the experiment I noticed that it would close my non-admin window if it were the last (only) tab dragged out. I guess forcibly removing the last tab might be expected to close the app.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @PeterJones
        last edited by

        @PeterJones said in Admin vs. non-Admin inconsistency?:

        noticed that it would close my non-admin window if it were the last (only) tab dragged out.

        Well, one can always Ctrl+drag out a tab, to avoid that situation, if it is important to avoid it. But perhaps it is another inconsistency, as I’d think its (dragging tab out WITHOUT Ctrl) behavior would be governed by this setting:

        f8728bfa-9a68-4009-928c-9fa5a764575a-image.png

        But it doesn’t appear to be…

        1 Reply Last reply Reply Quote 0
        • gstaviG
          gstavi
          last edited by

          Try dragging a file from explorer into an admin command prompt and normal command prompt.
          Same results.

          This is a Windows feature completely unrelated to Notepad++. Windows blocks the messages related to drag and drop since there are security risks involved.

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @gstavi
            last edited by

            @gstavi said in Admin vs. non-Admin inconsistency?:

            Try dragging a file from explorer into an admin command prompt and normal command prompt.
            Same results.
            This is a Windows feature completely unrelated to Notepad++. Windows blocks the messages related to drag and drop since there are security risks involved.

            My complaint wasn’t with this, specifically.
            My intent was to just point out perhaps an inconsistency, and one that has potential value as a workaround to the Windows behavior.

            gstaviG 1 Reply Last reply Reply Quote 0
            • gstaviG
              gstavi @Alan Kilborn
              last edited by

              @Alan-Kilborn
              Please phrase the inconstancy that concerns you?

              I understood that the inconsistency was that drag-and-drop acts differently for normal user Notepad++ instance and admin Notepad++ instance?

              Since I used to drag from explorer to command prompt a lot, I specifically remember that it stopped working for Windows Vista since Microsoft decided that it is unsafe and blocked it.

              I guess that an Admin Notepad++ wouldn’t observe any Windows message when a file is dragged from explorer into it so it can not show any feedback to the user.

              I admit I am a bit surprised that drag and drop from normal Notepad++ to Admin Notepad++ does work. Don’t know why, but some ideas are:

              • Explorer.exe is critical part of Windows it is possible that stricter rules are applied for dragging from it.
              • Drag-and-drop is complex with lots of implementation details that may make the difference.
              1 Reply Last reply Reply Quote 1
              • mere-humanM
                mere-human
                last edited by

                This looks like a caution measure in Windows.

                As a security measure Windows does not permit drag and drop from an unelevated source to an elevated recipient.

                More info here:
                https://social.msdn.microsoft.com/Forums/en-US/5ff2938f-7eb0-4fec-9ce1-b4b745886797/drag-n-drop-not-working-on-elevated-mode-with-coledroptarget?forum=vcgeneral

                But probably it is worth to create an issue for this. Could you, please, do that, @Alan-Kilborn ?

                Alan KilbornA gstaviG 2 Replies Last reply Reply Quote 2
                • Alan KilbornA
                  Alan Kilborn @mere-human
                  last edited by

                  @mere-human said in Admin vs. non-Admin inconsistency?:

                  But probably it is worth to create an issue for this. Could you, please, do that, @Alan-Kilborn ?

                  I’m not sure, what issue I would make?

                  mere-humanM 1 Reply Last reply Reply Quote 0
                  • mere-humanM
                    mere-human @Alan Kilborn
                    last edited by

                    @Alan-Kilborn I mean report a bug in Notepad++ repository.

                    Alan KilbornA 1 Reply Last reply Reply Quote 0
                    • Alan KilbornA
                      Alan Kilborn @mere-human
                      last edited by

                      @mere-human

                      I realize that. :-)

                      But, maybe I see it as just an inconsistency, not a bug.
                      As said above, it can be a workaround for something that Windows/Explorer just won’t do.
                      As such, I don’t really want to put an issue in – it might get acted upon! :-)

                      PeterJonesP 1 Reply Last reply Reply Quote 2
                      • PeterJonesP
                        PeterJones @Alan Kilborn
                        last edited by

                        @Alan-Kilborn said in Admin vs. non-Admin inconsistency?:

                        I don’t really want to put an issue in – it might get acted upon!

                        Indeed. :-)

                        You might want to put in a bug report to the effect that “exit on close the last tab” setting is ignored when you drag the last active tab to another instance.

                        1 Reply Last reply Reply Quote 0
                        • gstaviG
                          gstavi @mere-human
                          last edited by

                          Based on the link that @mere-human found, Admin Notepad++ may be able to get drag and drop messages by disabling filters with a call to ChangeWindowMessageFilterEx.

                          So there is point to file an issue.

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors