[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-28 Thread Dragon Cotterill
Nah, using xgb-mime uninstall simply removes the actual software that changes the mime-types. Does nothing to remove the associations. As you say, delete the entry from the mimeapps.list and it will stop the association (after a re-boot that is). My warning about hackers is that the action can e

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-27 Thread 'Mark S.' via TiddlyWiki
Thanks Dragon for the reply! It doesn't work inside a node.js instance, but then I'm not sure it was supposed to. It does work from TiddlyDesktop, so that's great! Re security, how do I back out these changes? It looks like maybe I just have to delete a line from ./.config/mimeapps.list ?? Othe

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-27 Thread Dragon Cotterill
Welcome to the wonderful world of Security Vulnerabilities and Work-arounds. Don't worry, this is my job. OK, you need to register a new URL scheme handler. First create a Desktop Entry which specifies the mime-type. For example: [Desktop Entry] Type=Application Name=TW Bash Script Exec=twscrip

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-23 Thread 'Mark S.' via TiddlyWiki
Thanks for replying! It does have the correct shebang, and runs fine from the command line. If I could include spaces in the file url, then I could run "/usr/bin/sh /path/to/my/script.sh". But I I don't know how to do that in a url line without converting to to %20 , which the OS wouldn't under

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-23 Thread jwd
What you may be looking for is the correct "Shebang " line at the top of the script that determines the interpreter to use (assuming the executable bit has been set.) Typically I would use something like #!/usr/bin/env bash or, if you want to be spe

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-22 Thread TiddlyTweeter
Ciao Mark S. I really looked into it. TBH I can't truthfully reply to your simple question. Background: I using (mainly) Timimi to launch from TW (it is fairly complex & now retired in the recent version); TiddlyDesktop (fussy, mainly because it is Chrome inside?); BobEXE (very flexible on scr

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-18 Thread 'Mark S.' via TiddlyWiki
I don't suppose you remember if there was a way to insert spaces? A sh script should always know to run itself, but if I could specify "/usr/bin/bash myshellscript.sh " that should force the system to invoke it correctly. Thanks! On Sunday, January 17, 2021 at 11:44:52 PM UTC-8 TW Tones wr

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-18 Thread TiddlyTweeter
Ciao Mark Very interesting discussion---even though I'm Linux-impoverished. Mark concluded ... | But all this is contingent on being able to run a script in the first place. Right. And on that I'm no help. All I know is that when we worked on POLLY this issue came up and we were unable

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-17 Thread TW Tones
MArk, I do not recall the Linux method however if we "launch" a file in Windows it uses the application associated with the file extension to determine the app to load the file in. This can also be done with "start filename". However when in a command prompt does the name of a .exe .cmd or .bat

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-17 Thread 'Mark S.' via TiddlyWiki
I was thinking in terms of intelligent web clipping. It's fairly easy to drag and drop an article into TW and import it. Unfortunately, the text will be in HTML, and the images will require an internet connection. So the resulting article is bulky, difficult to edit, and non-portable. On Linux,

[tw5] Re: How to launch batch scripts from TiddlyDesktop in linux?

2021-01-13 Thread TiddlyTweeter
Ciao Mark S. I'm not answering your Mac question as I'm only PC and Android. What I did want to generally comment is that "residual" ability to access the OS via "in TW scripts" is still very worthy. I think its particularly helpful in stand-alone one-file TW---AND TiddlyDesktop, which function