Summary: | Own scripts refuse to start via contex menu | ||
---|---|---|---|
Product: | [Applications] krusader | Reporter: | bbutscheidt |
Component: | general | Assignee: | Krusader Bugs Distribution List <krusader-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | krusader-bugs-null, nikita+kde |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
bbutscheidt
2017-12-29 12:42:02 UTC
So I don't know why and when krusader became that sort of selective of which scripts to run or not - but: If I add [code]#!/bin/bash[/code] at the start of my scripts, krusader seems to run them again via context menu or via doubleclick. I was mislead by the fact that in earlier times this was not necessary and that other file managers like dolphin aren't this picky. Can you share the script or a simplified version of the script? I can try to repro on my side. I created the most simple mpv.sh containing "mpv $1" and it works as expected on my side. Let us know if you'd like to provide your script or you're satisfied with adding "#!/bin/bash" which is recommended to do anyways. (In reply to Nikita Melnichenko from comment #3) > I created the most simple mpv.sh containing "mpv $1" and it works as > expected on my side. Let us know if you'd like to provide your script or > you're satisfied with adding "#!/bin/bash" which is recommended to do > anyways. Sorry for taking so long to answer. Since I am alone here, I consider the strange behaviour to be caused by my setup. Anyway, it is as simple as you tried: Non working: ==================== options="--autofit=75% --hwdec=vdpau --hwdec-codecs=all --vo=vdpau --vf-defaults=vdpaupp:deint=yes:deint-mode=bob" kommando="mpv "$options" "\"$1\" kommando="xfce4-terminal --command="\'$kommando\' #echo echo $kommando eval $kommando ======================== Marking a video file, right mouse menu and selecting the script to open it with the selected one I get again: "Could not start /home/bernd_b/mpv.sh /mnt/int4TB_02/...mkv" But adding #!/bin/bash ======================== #!/bin/bash options="--autofit=75% --hwdec=vdpau --hwdec-codecs=all --vo=vdpau --vf-defaults=vdpaupp:deint=yes:deint-mode=bob" kommando="mpv "$options" "\"$1\" kommando="xfce4-terminal --command="\'$kommando\' #echo echo $kommando eval $kommando ================================ and everything is fine. I can live very well with this solution - it only took me some time to find it since I never needed to be this correctly for a long time up to these days. Nikita, does comment #4 provide the requested information? Please set the bug status or add a comment. I tried to repro using the reporter's script (only replacing xfce4-terminal with konsole) - still it could be run on my side without issues. From comment #4, the reporter seems to be satisfied with adjusting the scripts. I'm closing the issue and will track if someone reports the same. |