diff -r 3f285782ac9b -r 7ac746c07ff2 plugins/python/modules/svgui/svgui.py --- a/plugins/python/modules/svgui/svgui.py Thu Oct 22 17:20:24 2009 +0200 +++ b/plugins/python/modules/svgui/svgui.py Fri Oct 23 15:41:48 2009 +0200 @@ -98,6 +98,15 @@ def _StartInkscape(self): svgfile = self._getSVGpath() - if not os.path.isfile(svgfile): - svgfile = None - open_svg(svgfile) + open_inkscape = True + if not self.GetPlugRoot().CheckProjectPathPerm(): + dialog = wx.MessageDialog(self.GetPlugRoot().AppFrame, + _("You don't have write permissions.\nOpen Inkscape anyway ?"), + _("Open Inkscape"), + wx.YES_NO|wx.ICON_QUESTION) + open_inkscape = dialog.ShowModal() == wx.ID_YES + dialog.Destroy() + if open_inkscape: + if not os.path.isfile(svgfile): + svgfile = None + open_svg(svgfile)