Reply
Thread Tools
Posts: 1,289 | Thanked: 4,318 times | Joined on Oct 2014
#11
Did a quick compile
Extract this (tar xvf.shc.tar.gz)
copy the shc to /usr/local/bin/
Attached Files
File Type: gz shc.tar.gz (33.4 KB, 24 views)
 

The Following 3 Users Say Thank You to nieldk For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#12
Originally Posted by nieldk View Post
You could use shc to compile the script to binary.
I cant recall if thats available on SailfishOS, but otherwise, its fairly simple.
Sources for shc is available so if its not already in repositories, it Can be compiled and used.
https://github.com/neurobin/shc
shc works.
But the compiled script suffers exactly the same ailments as the script itself, i.e. the launcher (lipstick I guess?) doesn't know that the script started, or that it finished, and just keeps spinning a waiting spinner for some time. It is not harmful, just not nice to look at.
I was wondering if it was possible to send the appropriate commands to the launcher (dbus???) via shell commands, or if I had to create a Silica wrapper around the script to get it to behave "nicely".

That said, is it possible to create a sort of Hello World Silica/QML program without having to install the complete SDK (on my desktop)?
__________________
N900 in 2020
SFOS in 2021
 

The Following User Says Thank You to nonsuch For This Useful Post:
Posts: 1,289 | Thanked: 4,318 times | Joined on Oct 2014
#13
Originally Posted by nonsuch View Post
shc works.
But the compiled script suffers exactly the same ailments as the script itself, i.e. the launcher (lipstick I guess?) doesn't know that the script started, or that it finished, and just keeps spinning a waiting spinner for some time. It is not harmful, just not nice to look at.
I was wondering if it was possible to send the appropriate commands to the launcher (dbus???) via shell commands, or if I had to create a Silica wrapper around the script to get it to behave "nicely".

That said, is it possible to create a sort of Hello World Silica/QML program without having to install the complete SDK (on my desktop)?
Really don’t know about dbus, but the API docs are here.
Coderus might know, but not sure how active he is here atm.

https://docs.sailfishos.org/Referenc...Is/D-Bus_APIs/
 

The Following User Says Thank You to nieldk For This Useful Post:
mrsellout's Avatar
Posts: 889 | Thanked: 2,087 times | Joined on Sep 2010 @ Manchester
#14
What is the purpose of the mount?
Is it for a backup or just to access files eg. (music)?

Perhaps there could be another way of doing this.

The Situations app could be used to trigger a mount when you connect to a WIFI network during a specific time frame (and unmount when you disconnect).
 
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#15
^ Nah, I want it on-demand, clickable.
Anyhow, my question is not so much about this application specifically, but rather generally about how I can launch a shell script through the launcher (lipstick?) without getting this pointless cover with a spinner.
__________________
N900 in 2020
SFOS in 2021
 
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#16
Originally Posted by nieldk View Post
Really don’t know about dbus, but the API docs are here.
Coderus might know, but not sure how active he is here atm.

https://docs.sailfishos.org/Referenc...Is/D-Bus_APIs/
Thanks anyhow.
Looks like the only command for lipstick is to trigger a screenshot...
__________________
N900 in 2020
SFOS in 2021
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:16.