Quantcast
Channel: together.jolla.com - Individual question feed
Browsing index pages (11 articles)

Running shell script from *.desktop file

Hi I have an odd problem. I have the made this little script to record sound: ------ record.sh begin ------ #!/bin/sh if [ -n "$(ps -e | grep parec)" ]; then killall parec; pacmd set-source-volume...

View Article


Comment by nas

@mortenbo did you check after the "killall parec" that it actually is killed ? you might put all that in a while to make the check, or even try a "killall -9 parec" . Also, make a try changing the...

View Article


Comment by peterleinchen

Just a guess. Maybe it will work with last line changed to: parec s.mp3 &

View Article

Comment by coderus

Sailfish launcher .desktop files are not designed for this :( It forces single-instance way of executing appliactions

View Article

Comment by mortenbo

All right, thanks. What are my options, then?

View Article


Comment by coderus

write application :)

View Article

Comment by mortenbo

@peterleinchen, alas it makes no difference.

View Article

Answer by nas for Running shell script from *.desktop file

@mortenbo ok, I think I made it to work! Add in a new line in your .desktop:X-Nemo-Single-Instance=no and that's it ! Also, if you want timestamp in the filename try: parec $(date +"%Y%m%d-%H%M%S")_s.mp3

View Article


Comment by mortenbo

Thanks @nas! However, I still have the annoying startup icon hovering for about 10 seconds whenever I start and stop the script. Is there any way to be rid if that? Also, parec does not record in mp3...

View Article


Comment by nas

@mortenbo I noticed that too, I was able to play the file only with parec playback option again. I tried --file-format which didn't work for me. How did you install lame on SailfishOS ? I don't have...

View Article

Comment by mortenbo

@nas, I believe I installed lame with devel-su pkcon install lame. If I remember incorrectly, then maybe I installed it from openrepos - there is a version of lame there in the "NielDK" repository.

View Article
Browsing index pages (11 articles)


Latest Images