I want to add a custom action and add it to a toolbar as a button. In this action I want to do something with a file e.g. `touch a file` As a substitute for a file name I use %aCurrent% symbol. It works for simple file names with american ASCII characters, but other names are transformed to non existent file names (using \). Please provide a way to get a real file name without transformation.
In my tests: a useraction that only does touch %aCurrent% works using the git version of Krusader (under Kubuntu 18.04 and under Ubuntu 18.04) and even if the name of the file has non us-ascii characters. If it can be useful, under Kubuntu 18.04 the execution of locale here shows: LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_ES.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_ES.UTF-8 LC_NAME=es_ES.UTF-8 LC_ADDRESS=es_ES.UTF-8 LC_TELEPHONE=es_ES.UTF-8 LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=es_ES.UTF-8 LC_ALL= > Platform: unspecified Linux Can you give more information about your system, just in case?
Hi, Thank you for looking at the problem. I use Fedora 28, x64 , with Openbox. Locale: LANG=pl_PL.UTF-8 LC_CTYPE="pl_PL.UTF-8" LC_NUMERIC="pl_PL.UTF-8" LC_TIME="pl_PL.UTF-8" LC_COLLATE="pl_PL.UTF-8" LC_MONETARY="pl_PL.UTF-8" LC_MESSAGES="pl_PL.UTF-8" LC_PAPER="pl_PL.UTF-8" LC_NAME="pl_PL.UTF-8" LC_ADDRESS="pl_PL.UTF-8" LC_TELEPHONE="pl_PL.UTF-8" LC_MEASUREMENT="pl_PL.UTF-8" LC_IDENTIFICATION="pl_PL.UTF-8" LC_ALL= Sorry, but I should be more precise. It’s about characters like: []() Example: real file name: test []()&^%$~`=+{};,.txt %aCurrent% : test\ \[\]\(\)\&^%$~`=+\{\}\;,.txt
Hi, appdevsw, I've just tried it and it works even if the file is named test []()&^%$~`=+{};,.txt
Created attachment 114560 [details] Using Ubuntu 18.04
Created attachment 114561 [details] Using Kubuntu 18.04
please export your action and attach here
Here is the action: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE KrusaderUserActions> <KrusaderUserActions> <action name="touch"> <title>touch</title> <tooltip>touch</tooltip> <category>Przykłady</category> <description>touch</description> <command>touch "%aCurrent%"</command> </action> </KrusaderUserActions> I started to test it. Without "" it works properly. So I made a mistake when I used %aCurrent% in quotation marks. Sorry. Please close the bug.