Button Variables not expanded

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
t_arn
Junior Member
Junior Member
Posts: 42
Joined: 2006-12-28, 07:52 UTC

Button Variables not expanded

Post by *t_arn »

I'm trying to send selected files to my pyTextDiff app.
I created a custom with following definition:
* Function: start program
* command: (the selected app)
* parameters: url:data:application/json,["%P%N","%T%M"]

But in my app, I get the string data:application/json,["%P%N","%T%M"] and the variables are not replaced by the paths / filenames
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button Variables not expanded

Post by *ghisler(Author) »

First, use "view with app" instead of "start program". Action.MAIN usually doesn't have parameters.
Second, you need to select a file in each panel by clicking on their icons to have them as parameters.
Third, this call
setData(Uri.parse(parameter))
with parameter containing data:application/json,["/path1/file1","/path2/file2"]
is this really what you want?
Author of Total Commander
https://www.ghisler.com
t_arn
Junior Member
Junior Member
Posts: 42
Joined: 2006-12-28, 07:52 UTC

Re: Button Variables not expanded

Post by *t_arn »

is this really what you want?
Yes, that was the idea.
But maybe you are right and I'm better off with adding a VIEW intent to my app.
Post Reply