[Bug] L'UAC de Vista et Seven et les plug-ins
Salut,
Je viens d'essayer ce programme sous Vista, mais j'ai un petit problème : les plug-ins ne fonctionnent pas. Voici l'erreur qui apparaît dans la fenêtre de log :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| 2009/11/05 08:11:14 INFO [PluginManager] : Load Plugins From File : D:\Progr
am Files\Adobe\Millie\plugins\HarrisDetectionPlugin.jar
2009/11/05 08:11:14 INFO [PluginManager] : Load Plugins From File : D:\Progr
am Files\Adobe\Millie\plugins\MillieCoreFilter-1.1.5.jar
2009/11/05 08:11:14 DEBUG [PluginManager] : Pas de fichier de filtre trouvÚ e
n local
java.io.FileNotFoundException: D:\Program Files\Adobe\Millie\pluginsstyle.config
(AccÞs refusÚ)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at millie.commons.utils.MillieCommonsUtils.getOutputStream(MillieCommons
Utils.java:48)
at millie.gui.services.PluginServices.loadPlugins(PluginServices.java:81
)
at millie.gui.services.PluginServices.refresh(PluginServices.java:104)
at millie.gui.actions.MillieGUIServices.refreshPluginsService(MillieGUIS
ervices.java:219)
at millie.gui.actions.MillieGUIActions.refreshPluginsAction(MillieGUIAct
ions.java:43)
at millie.gui.view.MillieGUI$5.actionPerformed(MillieGUI.java:187)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source) |
Comme on peut le voir aisément, j'ai mis Millie dans %PROGRAMFILES%, ce qui fait qu'il a besoin des droits pour pouvoir écrire dedans, droits que je ne lui donne pas (intentionnellement). Ce qui fait qu'il ne peut pas écrire le fichier pluginstyle.config.
La solution ? Créer le fichier dans un sous-répertoire de %APPDATA%, là où tout programme peut écrire plus aisément. Tout ça juste pour que le programme fonctionne mieux sous Vista et Seven...
(Je viendrais bien modifier ça dans les sources, mais je n'entends pas grand chose au Java...).