• Login
Community
  • Login

New Plugins Home (where Notepad++ will load from)

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
79 Posts 22 Posters 104.6k 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.
  • D
    donho @dinkumoil
    last edited by Nov 27, 2018, 6:51 PM

    @dinkumoil said:

    Users are used to confirm UAC dialogs when installing plugins from the old Plugin Manager and confirming is only one mouse click, not that hard. If the design of GUP.exe is appropriate (I don’t know if it currently is or not) one UAC confirmation could be sufficient to install a bunch of plugins at once.

    In this case, %LOCALAPPDATA%\Notepad++\plugins\ is not needed anymore.

    1 Reply Last reply Reply Quote 0
    • D
      dinkumoil
      last edited by Nov 27, 2018, 8:52 PM

      @donho said:

      In this case, %LOCALAPPDATA%\Notepad++\plugins\ is not needed anymore.

      Well, at most.

      When Notepad++ gets installed, admin rights are required. If an administrator trusts his users and/or the community of Notepad++ plugin developers, he could select “Allow plugin installation to the user profile (%LocalAppData%)” during installation. As a result users could install plugins without admin rights later on. I think this was the use case of this option in Notepad++ versions prior to v7.6.

      I don’t know, but I think this could be the most uncommon use case. It wouldn’t be that bad to loose this feature.

      1 Reply Last reply Reply Quote 0
      • D
        donho
        last edited by Nov 28, 2018, 9:02 AM

        FYI, the plugins loading schema has been modified again. Please recheck the 1st post of this thread.

        1 Reply Last reply Reply Quote 2
        • D
          donho @Meta Chuh
          last edited by Nov 28, 2018, 9:30 AM

          @Meta-Chuh

          grey out “Don’t use %APPDATA%” if the selected path matches %PROGRAMFILES% or %PROGRAMFILES(X86)%

          I will see what I can do about it.

          The 2nd point will be solved in the next release (see new schema of the first post).

          M 1 Reply Last reply Nov 28, 2018, 10:24 AM Reply Quote 3
          • M
            Meta Chuh moderator @donho
            last edited by Nov 28, 2018, 10:24 AM

            @donho

            thanks a lot, much appreciated
            your edit (28 November 2018) looks perfect, clean and straight forward

            so if i’m correct, you can and will remove ${If} $arePlugins4AllUsers == “true” and all pluginsForAllUsers.xml sections
            as they are not necessary for anything anymore, correct ?
            if yes, it’s a perfect cleanup

            greetings
            MetaChuh

            D 1 Reply Last reply Nov 28, 2018, 11:37 AM Reply Quote 3
            • D
              donho @Meta Chuh
              last edited by Nov 28, 2018, 11:37 AM

              @Meta-Chuh said:

              so if i’m correct, you can and will remove ${If} $arePlugins4AllUsers == “true” and all pluginsForAllUsers.xml sections
              as they are not necessary for anything anymore, correct ?
              if yes, it’s a perfect cleanup

              Yes, they are not necessary anymore. I will do a clean up

              1 Reply Last reply Reply Quote 2
              • D
                donho
                last edited by Dec 3, 2018, 11:58 AM

                FYI: The 1st post of this thread has been updated: new plugin list locations are added.

                1 Reply Last reply Reply Quote 4
                • O
                  OldMcWeb
                  last edited by Dec 5, 2018, 8:03 AM

                  Hi,
                  im new here and like to contribute some thoughts from a user perspective.

                  In the current case as a user I get the changelog with a link to https://notepad-plus-plus.org/features/plugin-admin.html
                  Then I start searching for the PluginAdmin, found out that i need admin privileges.
                  That’s a debatable move, but ok I can understand the thoughts behind.
                  Then I found that my plugins are under the admin profile AppData.
                  Ok makes sense to me, but now i find this thread telling me that things will totally change in the next release again.

                  As a idea:

                  • Make it configurable where your plugins are stored. Maybe from the setup and in an config file.

                  • Put more Info for this changes in the changelog, the link to https://notepad-plus-plus.org/features/plugin-admin.html
                    helps but is only a part of the solution

                  • Maybe add a menu item in [?] -> GotoPluginFolder

                  Don’t get me wrong, I don’t want to criticize your hard work, but I like to show that the last update was very confusing for probably lot of users.

                  1 Reply Last reply Reply Quote 1
                  • M
                    MrOuzo
                    last edited by Dec 5, 2018, 1:22 PM

                    I use Notepad++ many years, with many plugins and config files. I have 2 points to store all Programm ,plugins and configuration… now i have so sort and show to all config and whatever that it comes into the right location… its a bad thing and i stay on lower than 7.6. so i know it works.
                    If its a new installation and you have no good working configuration, i say its ok to install this new worst admin plugin. For a updated install its better to use all the locations as is it… for every dll-plugin a directory with his own name…brrrr

                    1 Reply Last reply Reply Quote 0
                    • M
                      Marc66
                      last edited by Dec 6, 2018, 8:19 AM

                      It took me forever to get back to a working configuration after the Plugin folder and approach changed in 7.6. I was able to install 2 additional plugins manually, because installation from the plugin admin doesn’t work (it just freezes and never completes). I ran plugin admin and saw there were updates, so I updated them and it simply removed them.

                      Why break something that has been working for years?

                      I searched for an alternative and happily moved to PSPad : lightweight and has compare and hex viewer feature out of the box. I’m done with Notepad - -

                      O 1 Reply Last reply Dec 6, 2018, 12:19 PM Reply Quote 0
                      • O
                        OldMcWeb @Marc66
                        last edited by Dec 6, 2018, 12:19 PM

                        @Marc66 Well things change and change is not a bad thing.
                        But this change hits the user a bit unprepared.

                        PSPad … naaaa…Closed source is not a option for me.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Stan Petit
                          last edited by Dec 6, 2018, 12:28 PM

                          Hi all.
                          Could you write something clear about the future of NPP-PORTABLE-VERSION, in regard to the new plugins location strategy?
                          To keep the Plugins Menu list “as minimal as can be”, I got the habit to run several portable Notepad++ in parallel : no use to load plugins that are not necessary.
                          So, what about the ability to run different configurations of Notepad++ depending on the project ?
                          Best, Stan.

                          M 1 Reply Last reply Dec 6, 2018, 8:17 PM Reply Quote 0
                          • M
                            Meta Chuh moderator @Stan Petit
                            last edited by Dec 6, 2018, 8:17 PM

                            @Stan-Petit

                            everything stays within the np++ portable folder in the future too
                            the only thing that changed since 7.6 ist that you have to have a subfolder for the dlls inside the plugin folder

                            example for versions below 7.6:
                            <NPP_INST_DIR>\plugins\MyPlugin.dll

                            example for 7.6 onwards:
                            <NPP_INST_DIR>\plugins\MyPlugin\MyPlugin.dll

                            very important: you can put the portable version’s folder anywhere (usb drive, desktop, etc.) but not inside C:\Program Files or C:\Program Files (x86) but this restriction has been the same in older versions too

                            also please have a look again at the first post:

                            Notepad++ loads plugins from: <NPP_INST_DIR>\plugins\
                            plugins list dir : <NPP_INST_DIR>\plugins\Config\
                            plugins’ config dir: <NPP_INST_DIR>\plugins\config\
                            because Notepad++ installed on: wherever (except in %PROGRAMFILES%\Notepad++) with doLocalConf.xml

                            1 Reply Last reply Reply Quote 3
                            • M
                              Meta Chuh moderator @Meta Chuh
                              last edited by Dec 10, 2018, 9:45 PM

                              @Meta-Chuh said:
                              currently we have to answer these scenarios again and again:
                              …
                              possible solutions:
                              grey out “Don’t use %APPDATA%” if the selected path matches %PROGRAMFILES% or %PROGRAMFILES(X86)%

                              @donho
                              btw: thanks for your commit
                              (Make installer more coherent for the option doLocalConf.xml) 👍

                              very much appreciated

                              1 Reply Last reply Reply Quote 1
                              • L
                                ldlx
                                last edited by Dec 13, 2018, 5:57 PM

                                This is a security nightmare!

                                All users are allowed to write new files (and so DLLs) to programdata, but only the creator-owner is allowed to change a file by default. So updates of a plugin can be installed by the user that installed the plugin or by an account that as administrator priviligues. And every user is allowed to install new plugins for all users. Is this really the intended behaviour or will the Notepad++ installer change the NTFS right so that only users with administrator priviligues are allowed to install plugins/updates?

                                M D 2 Replies Last reply Dec 13, 2018, 9:33 PM Reply Quote 0
                                • M
                                  Meta Chuh moderator @ldlx
                                  last edited by Dec 13, 2018, 9:33 PM

                                  @ldlx

                                  And every user is allowed to install new plugins for all users.

                                  not true, you need to have administrator rights to install plugins via plugins admin.

                                  furthermore it was the wish of almost all it pro’s within this community to have a single plugin location for all users instead for each user manually, as they need it for a simple and quick deployment.

                                  L 1 Reply Last reply Dec 13, 2018, 10:51 PM Reply Quote 0
                                  • D
                                    dinkumoil
                                    last edited by dinkumoil Dec 13, 2018, 10:15 PM Dec 13, 2018, 10:12 PM

                                    @Meta-Chuh

                                    I have to second @ldlx . What he wants to point out is that every user can drop new e.g. DLL files in any subdirectory of %ProgramData%. Normal Windows users are only prohibited to delete, change or overwrite already existing files which have been created by another user.

                                    Thus it is indeed a security hole. Me and other people already pointed that out in the past. But it seems to be more important to be able to provide a Windows Store app (the reason for the whole plugin relocation) than to follow common security guidelines.

                                    I already wrote down my thoughts to UWP (Windows Store) apps in this comment . When this specification has been designed, the author(s) had obviously not in mind that there could be apps with a plugin interface like Notepad++. This kind of apps is not suitable for UWP because they have no other choice than to store executable code (the plugins) in some kind of user profile which are unsecure locations.

                                    Maybe Microsoft will change the UWP app specification somewhere in the future and will forbid to store executable code in unsecure locations. Then all the hassle we are faced with currently will be for nothing.

                                    M 1 Reply Last reply Dec 13, 2018, 11:08 PM Reply Quote 3
                                    • L
                                      ldlx @Meta Chuh
                                      last edited by ldlx Dec 13, 2018, 10:52 PM Dec 13, 2018, 10:51 PM

                                      @Meta-Chuh said:

                                      @ldlx

                                      And every user is allowed to install new plugins for all users.

                                      not true, you need to have administrator rights to install plugins via plugins admin.

                                      EVERY USER can store files to programdata. But only the creator-owner can change/save/delete files that he created.

                                      furthermore it was the wish of almost all it pro’s within this community to have a single plugin location for all users instead for each user manually, as they need it for a simple and quick deployment.

                                      There’s a good location where only administrator users can write - the folder where the program is stored in %programfiles% - only administrative users can write to that location.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Meta Chuh moderator @dinkumoil
                                        last edited by Dec 13, 2018, 11:08 PM

                                        @dinkumoil
                                        if you remember, the original proposed locations were both at %LOCALAPPDATA% and switchable to an all user installation at %PROGRAMDATA% or %PROGRAMFILES%
                                        but so many people (the ones who posted actively, not me) wanted it to be as it is now, simple and a single plugins folder for all users.

                                        now we have a situation where everyone originally wanted chocolate ice cream and now that it’s served they’d prefer vanilla.

                                        do you have an idea what’s best to do now ?

                                        L D 2 Replies Last reply Dec 13, 2018, 11:12 PM Reply Quote 0
                                        • L
                                          ldlx @Meta Chuh
                                          last edited by Dec 13, 2018, 11:12 PM

                                          @dinkumoil Windows Store Apps are provided on a per-user base - which are placed inside the user profile (afaik). It makes no sense to provide plugins on a per-machine base when the installation is on a per-user base.

                                          @Meta-Chuh said:

                                          @dinkumoil
                                          if you remember, the original proposed locations were both at %LOCALAPPDATA% and switchable to an all user installation at %PROGRAMDATA% or %PROGRAMFILES%
                                          but so many people (the ones who posted actively, not me) wanted it to be as it is now, simple and a single plugins folder for all users.

                                          now we have a situation where everyone originally wanted chocolate ice cream and now that it’s served they’d prefer vanilla.

                                          do you have an idea what’s best to do now ?

                                          keep it the same way as before:

                                          • users can install there plugins in %appdata% (or %localappdata%, but I believe it is %appdata%) - when “allowAppDataPlugins.xml” is present in the program files folder
                                          • all-users-plugins can be put in the program files-plugin folder.

                                          imho: it doesn’t make sense to install programs on a per-user base (UWP-apps) and to provide plugins to all users on a per-machine base (in %programdata%).

                                          1 Reply Last reply Reply Quote 0
                                          40 out of 79
                                          • First post
                                            40/79
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors