SexScripts : Linux useFile() open text editor - https://ss.deviatenow.com:443/viewtopic.php?f=6&t=950 Page 1 of 1

Linux useFile() open text editor

ptdw [ Thu Feb 27, 2020 7:50 am ]

Since I can't use SexScripts with webcam in macOS Catalina, I'm trying to get it running with Linux. I can get the webcam working, but not e-stim commands with useFile().

Any time I useFile(), the shell script is just opened in a text editor and not actually run (Ubuntu Desktop 19.10). I changed the Ubuntu Nautilus preferences to run scripts instead of opening in a text editor, but that didn't change SexScript's behavior.

Has anyone successful been able to run shell scripts from SexScripts? I'd love to know your secret! Thanks.

Re: Linux useFile() open text editor

MissEshock2002 [ Thu Feb 27, 2020 6:52 pm ]

The script must be executable. You sure know that.
Code:
chmod +x script.sh
You must set the default application to 'bash'.

Re: Linux useFile() open text editor

ptdw [ Fri Feb 28, 2020 7:09 am ]

Thanks, it is executable, and double clicking from Nautilus runs the script. However, when SexScripts opens it, it just opens in a text editor. This must be related to system-wide MIME types or something, but for the life of me I can't get it to work in SexScripts even though it runs from the command line and I can double-click it.

I've tried converting it to a .desktop file, running bash directly, etc. but all no luck...

Re: Linux useFile() open text editor

pienk [ Mon Jun 15, 2020 8:18 pm ]

Hi,
I have the same problem.

The only solution I found was to change the script where the useFile(... lines are and add:
Code:
def cmd = EstimPath+"/"+EstimStart
def proc =  cmd.execute()
proc.waitFor()
//useFile(EstimPath+"/"+EstimStart)
wait(getRandom(EstimTime-50)/100+0.5)
cmd = EstimPath+"/"+EstimFinish
proc =  cmd.execute()
proc.waitFor()
//useFile(EstimPath+"/"+EstimFinish)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011