Bug 484713

Summary: servicemenu exec: not authorized to execute
Product: [Applications] dolphin Reporter: andrei+1_multi.kde
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REOPENED ---    
Severity: normal CC: fanzhuyifan, kfm-devel, meven29
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description andrei+1_multi.kde 2024-03-29 14:13:24 UTC
SUMMARY
I have been using this .desktop file as a servicemenu in dolphin 23.04 on windows successfully, now with dolphin 24.04.70 on windows i get the error "You are not authorized to execute this file."

STEPS TO REPRODUCE
1. use this .desktop file as servicemenu
[Desktop Entry]
MimeType=application/octet-stream
Actions=createdir
Icon=utilities-terminal
Type=Service
X-KDE-Priority=TopLevel
[Desktop Action createdir]
Exec=C:/moveindir.bat "%f"
Icon=utilities-terminal
Name=Create Dir and Move file in it


OBSERVED RESULT
the .bat file is not running

EXPECTED RESULT
.bat file should run

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Is there a way to "authorize" that .bat file to run?
Comment 1 fanzhuyifan 2024-03-29 15:12:04 UTC
chmod +x ...

You need to set the executable bit.
Comment 2 andrei+1_multi.kde 2024-03-29 20:24:22 UTC
It's on windows.
the .bat file does have "read&execute" allowed.
Comment 3 fanzhuyifan 2024-03-29 22:56:14 UTC
(In reply to andrei+1_multi.kde from comment #2)
> It's on windows.
> the .bat file does have "read&execute" allowed.

Ahh sorry. I was wondering why you would have a .bat file on linux...
Comment 4 Méven Car 2024-03-30 12:37:44 UTC
Do you have an error message in the console if you launch dolphin from the command line ?
Comment 5 andrei+1_multi.kde 2024-03-30 19:24:38 UTC
(In reply to Méven Car from comment #4)
> Do you have an error message in the console if you launch dolphin from the
> command line ?

I did run dolphin.exe from cmd but it goes to background and no messages are printed in the console.

i did not find any parameter to keep it in foreground/attached to console.