vitorgalvao / alfred-workflows

Collection of Alfred workflows
BSD 3-Clause "New" or "Revised" License
2.44k stars 167 forks source link

Is there any way to keep the workflow environment variables when updating? #166

Closed Nauxscript closed 1 year ago

Nauxscript commented 1 year ago

Setup info

Description of issue

hey, thanks for your workflows, its amzing and helpful!

I had made a workflow and use the OneUpdater workflow to implement auto-update. but i found that every time the workflow update, the workflow environment variables will be covered and my workflow have a custom variable set by user, so when user updated the workflow, the variable they set is gone.

Is there any way to keep the workflow environment variables when updating?

vitorgalvao commented 1 year ago

If the variable is being overwritten, it’s because when the workflow opens to be updated, the user is unticking this checkbox on the bottom left:

image

Leave it ticked and the variables will be preserved.

Nauxscript commented 1 year ago

Thank you for your reply! I will try it.

Nauxscript commented 1 year ago

hey, thank for your previous answer.

I have tried the way you mentioned before, but it doesn't seem to work.after ticking Migrate my workflow customisations, the local environment variables still being overwritten.

image

vitorgalvao commented 1 year ago

The variable needs to exist in the first place. If you don’t want the value to be exported, tick the checkbox. This isn’t related to OneUpdater.

In Alfred 5 you should be using Workflow Configuration instead of Workflow Environment Variables for things users are meant to change.