marta-file-manager / marta-issues

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

Marta crashes while run executable gadgets #982

Open programus opened 1 year ago

programus commented 1 year ago

I am configuring a gadget and it worked at the first time. Marta then crash once while I run the gadget, after that Marta always crash while I run the gadget.

I tried to change the command, but it still crashes. I wrote the following script to check whether it is the problem of my executable script or the problem of invocation from Marta.

My test script

echo "$@" > ~/bin/test.log

My gadgets config

gadgets [
...
    {
        id "gadget.action.test"
        name "Test Action"
        type "executable"
        executable "~/bin/test.sh"
        args ["${current.file.name}"]
        workingDirectory "${current.file.path}"
    }
]

Marta still crashes, and no output in ~/bin/test.log.

How can I solve this problem? Since it worked at the first time, maybe a reset of Marta would help, but I don't know how to reset this either.