From 4c5e1c8c8b10e6b5715fc2f02d8f3e3c6b90cbcc Mon Sep 17 00:00:00 2001 From: Sinan Kanidagli Date: Thu, 13 Jun 2024 12:52:31 +0200 Subject: [PATCH] changed xdg-open,open to open_command --- plugins/tasko/tasko.plugin.zsh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/tasko/tasko.plugin.zsh b/plugins/tasko/tasko.plugin.zsh index 0da1daa0c..b779fb116 100644 --- a/plugins/tasko/tasko.plugin.zsh +++ b/plugins/tasko/tasko.plugin.zsh @@ -25,12 +25,8 @@ function tasko () { echo "Open $annotation_desc? [y/n]" read answer if [[ $answer == y* ]] || [[ $answer == Y* ]]; then - if [[ $(uname -s) == "Linux" ]]; then - xdg-open $annotation_desc - return 0 - else - open $annotation_desc - return 0 + open_command $annotation_desc + return 0 fi return 1 fi