View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#1021
Originally Posted by mangoicetea View Post
I tried this myself and despite many attempts I can't seem to get the script working properly. Running this script in terminal:
#!/bin/sh
xdg-open /usr/share/applications/toggleBT_harmattan.desktop
killall music-suite
Got me this:
:no process killede
- $ invoker ...toggleBT..
in which the bluetooth toggle works fine but the music application isn't killed.

Switching the lines in the script to this:
#!/bin/sh
killall music-suite
xdg-open /usr/share/applications/toggleBT_harmattan.desktop
Gets me:
no default action for the given PARAMS
Any advice?

Script is in a folder called /home/user/MyDocs/Scripts
Your script is probably written in windows and has MS-DOS formatting. Just go to terminal and use nano.

Code:
nano myscript.sh
Write your script there and save (the default /home/user is fine). It will work now.