marta-file-manager / marta-issues

An issue tracker for Marta File Manager.
https://marta.yanex.org/
368 stars 0 forks source link

Gadgets do not work at all (Catalina issue?) #593

Open VKondakoff opened 5 years ago

VKondakoff commented 5 years ago

I'm using Marta 0.7 with Catalina and wanted to test Gadgets functionality. I created this simple test gadget:

gadgets [
    {
        id "gadget.testgadget.identifier"
        name "Test Gadget"
        type "executable"
        executable "/usr/bin/touch"
        args [ "~/test3.txt" ]
    }
]

If I choose 'Test Gadget' in Action bar - just nothing happens... If I run '/usr/bin/touch ~/test3.txt' from command line everything works as expected. Is this Catalina issue or am I doing something wrong? How can I debug this?

yanex commented 5 years ago

~ paths are not allowed in gadgets. Replace it with the ${user.home} variable:

gadgets [
    {
        id "gadget.testgadget.identifier"
        name "Test Gadget"
        type "executable"
        executable "/usr/bin/touch"
        args [ "${user.home}/test3.txt" ]
    }
]
VKondakoff commented 5 years ago

Yes, thank you. It works as expected using variable instead of path. Please, add this to the docs!