ContextMenus don't work when extra space at EOL

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 5:40 am
Location: France

ContextMenus don't work when extra space at EOL

Post by zzd10h »

Hi,
just spend some time to find why some commands didn't work when called from Contextual Menu.
On my system, I found that if I add space character at end of a line, the desired command don't launch it.

For example, in my ENV:ContextMenus.cfg

"Workbench,Mounter,WB,SYS:System/Mounter" works fine

but if I add a space character at end of line
"Workbench,Mounter,WB,SYS:System/Mounter "
and that I recycle Commodities/ContextMenus
Mounter can't be launched anymore .

1) It's just for me or it's the normal way of work ?

2) And I take the opportunity to ask if somebody knows how to add a command for all the type of files in ContextMenu.
Because, for the moment, I have to add a line by type of files...

SingleIcon,FastZIP,WB,SYS:Utilities/FastZIP/FastZIP
Multiple,FastZIP,WB,SYS:Utilities/FastZIP/FastZIP
wav,FastZIP,WB,SYS:Utilities/FastZIP/FastZIP
ascii,FastZIP,WB,SYS:Utilities/FastZIP/FastZIP

but for individual avi file for example, it doesn't work.

Thank for reply
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: ContextMenus don't work when extra space at EOL

Post by broadblues »

1. It's not just you, but I'm not sure that's right, I would expect to ignore trailing whitespace.

I'll Raise a BZ and see if the maintainer agrees....

2. I think you need to define a command for all file types seperately , but you should be able to defines commands for groups / classes of file types too,

In you example the ascii should work for all sub types of ascii files.
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 5:40 am
Location: France

Re: ContextMenus don't work when extra space at EOL

Post by zzd10h »

Thank broadblues for the bug report.

For the 2, ok, therfore it seems not possible, sadly...
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
Post Reply