← Back to team overview

zim-wiki team mailing list archive

Re: custom command failure on Mac

 

Looks like you have the XDG_DATA_HOME environment parameter configured
wrong.  This should point to a writable folder, by default "~/.local/share"
- but in your case it seems to point to "/sw/share" which is not writable.

You can check by typing "echo $XDG_DATA_HOME" in the xterm. And set it by
"export XDG_DATA_HOME=~/.local/share" before running zim.

-- Jaap



On Thu, Dec 15, 2011 at 9:49 PM, BIN ZHANG <zhngbn@xxxxxxxxx> wrote:

> Hi, Jaap:
>
> Thanks a lot for your response. I got following error while trying: Edit->
> Preferences-> Applications->File browser
>
> Best,
> Bin
>
> ==================================================
> DEBUG: Opening dialog "Preferences - Zim"
> DEBUG: Opening dialog "Custom Command - Zim"
> DEBUG: Dialog response OK
> DEBUG: Loading /sw/share/zim/applications/finder-usercreated.desktop
> DEBUG: Running ErrorDialog
> ERROR: File is not writable
> Traceback (most recent call last):
>   File "/sw/lib/python2.7/site-packages/zim/gui/widgets.py", line 2258, in
> do_response
>     destroy = self.do_response_ok()
>   File "/sw/lib/python2.7/site-packages/zim/gui/applications.py", line
> 621, in do_response_ok
>     application = manager.create_helper(self.apptype, name, cmd)
>   File "/sw/lib/python2.7/site-packages/zim/gui/applications.py", line
> 321, in create_helper
>     return _create_application(dir, Name, Exec, **param)
>   File "/sw/lib/python2.7/site-packages/zim/gui/applications.py", line 98,
> in _create_application
>     entry.write()
>   File "/sw/lib/python2.7/site-packages/zim/config.py", line 749, in write
>     self.file.writelines(self.dump())
>   File "/sw/lib/python2.7/site-packages/zim/fs.py", line 1455, in
> writelines
>     self._writelines(lines)
>   File "/sw/lib/python2.7/site-packages/zim/fs.py", line 1488, in
> _writelines
>     file = self.open('w')
>   File "/sw/lib/python2.7/site-packages/zim/fs.py", line 1259, in open
>     raise FileWriteError, _('File is not writable') # T: Error message
> FileWriteError: File is not writable
>
> On Dec 15, 2011, at 12:28 PM, Jaap Karssenberg wrote:
>
> On Thu, Dec 15, 2011 at 7:48 PM, BIN ZHANG <zhngbn@xxxxxxxxx> wrote:
>
>> Now I can run Zim on mac in xterm, and most of the things work very nice.
>> But there is one thing that bothers me, it seems that Zim do not coop with
>> Mac's file manager. I cannot drop attachment into Zim, now would the
>> attachment link created can be opened. Also, when I try to "Custom
>> Command", I get error like "File not writtable"? Is there anyway to
>> configure, get around this?
>>
>
> It would help to know the exact error trace. Please run zim as "zim -D"
> and check the debug output for the detailed error.
>
> Regards,
>
> Jaap
>
>
>

References