de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Linux useFile() open text editor
PostPosted: Thu Feb 27, 2020 7:50 am 
Offline
Veteran
User avatar
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.


Top
 Profile Send private message 
 
 Re: Linux useFile() open text editor
PostPosted: Thu Feb 27, 2020 6:52 pm 
Offline
Veteran
The script must be executable. You sure know that.
Code:
chmod +x script.sh
You must set the default application to 'bash'.


Top
 Profile Send private message 
 
 Re: Linux useFile() open text editor
PostPosted: Fri Feb 28, 2020 7:09 am 
Offline
Veteran
User avatar
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...


Top
 Profile Send private message 
 
 Re: Linux useFile() open text editor
PostPosted: Mon Jun 15, 2020 8:18 pm 
Offline
Shy
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)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.