Active Topics

 


Reply
Thread Tools
cutehunk04's Avatar
Posts: 472 | Thanked: 195 times | Joined on Jun 2010 @ India, Mumbai
#11
can this script be done in desktop command execution widget....
 
oKtosiTe's Avatar
Posts: 47 | Thanked: 14 times | Joined on Jul 2010
#12
Originally Posted by nicolai View Post
@oKtosiTe
Yes, I edit my previous post and wrapped the command in CODE tags
Great. I'll try it out as soon as I get home.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#13
A simple shortcut file is enough:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=SMS to my Friend XY
Exec=python -c 'import dbus; print dbus.Bus().call_blocking("org.freedesktop.Telepathy.AccountManager","/org/freedesktop/Telepathy/Account/ring/tel/ring", "com.nokia.Account.Interface.ChannelRequests","EnsureChannel","a{sv}ts", ({"org.freedesktop.Telepathy.Channel.TargetHandleType":dbus.UInt32(1),"org.freedesktop.Telepathy.Channel.TargetID":"000000000","org.freedesktop.Telepathy.Channel.ChannelType":"org.freedesktop.Telepathy.Channel.Type.Text"},0,""))'
Icon=general_sms
Replace the "Name=SMS to my Friend XY" to whatever you want and
replace the 000000000 with the phone number of your contact.
And then put this file in (name it sms_whatever.desktop)
/usr/share/applications/hildon/

regards
nicolai
 

The Following 6 Users Say Thank You to nicolai For This Useful Post:
Posts: 100 | Thanked: 24 times | Joined on May 2010
#14
Originally Posted by nicolai View Post
A simple shortcut file is enough:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=SMS to my Friend XY
Exec=python -c 'import dbus; print dbus.Bus().call_blocking("org.freedesktop.Telepathy.AccountManager","/org/freedesktop/Telepathy/Account/ring/tel/ring", "com.nokia.Account.Interface.ChannelRequests","EnsureChannel","a{sv}ts", ({"org.freedesktop.Telepathy.Channel.TargetHandleType":dbus.UInt32(1),"org.freedesktop.Telepathy.Channel.TargetID":"000000000","org.freedesktop.Telepathy.Channel.ChannelType":"org.freedesktop.Telepathy.Channel.Type.Text"},0,""))'
Icon=general_sms
Replace the "Name=SMS to my Friend XY" to whatever you want and
replace the 000000000 with the phone number of your contact.
And then put this file in (name it sms_whatever.desktop)
/usr/share/applications/hildon/

regards
nicolai
I did all that but when I go to add the shortcut, it's not there. Any suggestions?

nevermind figured it out, i was missing a comma!

Last edited by myeyegooogles; 2011-02-04 at 00:00.
 

The Following 2 Users Say Thank You to myeyegooogles For This Useful Post:
Swimm12984's Avatar
Posts: 80 | Thanked: 37 times | Joined on Feb 2010 @ Long Island, New York
#15
is there a similar variation on this code for phonecalls, emails, etc? And how do you embed an icon for such a shortcut?
__________________
Sean aka Mr. Swimmtastic
Long Island/NYC Resident Nokia S60/Maemo Lover

Lover of Music, Technology & Travel
If I'm not logged in, I'm probably jetsetting to a city near you...
 

The Following User Says Thank You to Swimm12984 For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#16
For E-Mail:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=EMAIL to X
Exec=python -c 'import dbus; print dbus.Bus().call_blocking("com.nokia.modest","/com/nokia/modest", "com.nokia.modest","ComposeMail","ssssss", ("receiverATmail.com","","","SUBJECT","BODY",""))'
Icon=general_email
replace receiverATmail.com with the your contacts emailaddress.


The icon name is in the Icon=... line in the desktop file.
Use an icon name like general_email or general_sms for
icons known by the theme or use the full path of a custom icon
like /home/user/ICONNAME

nicolai
 

The Following 5 Users Say Thank You to nicolai For This Useful Post:
cutehunk04's Avatar
Posts: 472 | Thanked: 195 times | Joined on Jun 2010 @ India, Mumbai
#17
i did, and got the shorcut in homescreen..but when i click it nothing happens...how does it work
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#18
 
Tiboric's Avatar
Posts: 433 | Thanked: 312 times | Joined on Nov 2009 @ U.K
#19
Works like a charm,

Thank you nicolai
 

The Following User Says Thank You to Tiboric For This Useful Post:
cutehunk04's Avatar
Posts: 472 | Thanked: 195 times | Joined on Jun 2010 @ India, Mumbai
#20
what i did...

Copy the above command and paste in a notepad

Name i gave 'sweetheart' and the mobile no. of a contact consist of 1O digit, so i gave 9999999999(fake) and save it to the same name...sms_whatever.desktop


then i copy the following txt.file to my N9OO and opened filebox and copy it and then save it to
/usr/share/applications/hildon/

then i got the icon of msg on my homescreen but no response after i click on it...

Where am i Wrong...
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:19.