Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#41
Originally Posted by coderus View Post
Schturman, "Sounds and Ambience settings will have no effect." means it cant use your ringtone from settings, only one set in Personal Ringtones as default ringtone.
Ahhh, now I understend.... Thanks
Maybe you can add option to see also ambiences ringtones ? Not only audio file from sd card or from /home/nemo ?
Or maybe you can do it variable and when ambience changed also Default ringtone will be changed ?
Pleeeease

P.S. all this settings saved in some text file that can be edited manually ?

Last edited by Schturman; 2016-02-08 at 16:01.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#42
you can check source code in github
settings are saved in dconf /apps/personalRingtones

i can probably add list of ringtones from abmiences source to selector.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#43
Originally Posted by coderus View Post
you can check source code in github
settings are saved in dconf /apps/personalRingtones

i can probably add list of ringtones from abmiences source to selector.
Thanks, but I'm not really understand it in your code, sorry
I'm tried to read what default ringtone for example: dconf read /apps/personalRingtones/default
but it show nothing...

Can you help me please, how to read and rewrite default ringtone via dconf command ?
I want to update for myself my "autoambience" package with dependencies to your "Personal ringtone" package. When every time that ambience will be changed, script also will send command something like: dconf write /apps/personalRingtones/default-ringtone /bla/bla/myringtone.wav to set ringtone from current ambience.
Please
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#44
/apps/personalRingtones/numbers/default
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#45
Originally Posted by coderus View Post
/apps/personalRingtones/numbers/default
Cool, thank you !
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#46
Hmmm.. If I want to rewrite new one, I did this for example:
Code:
dconf write /apps/personalRingtones/numbers/default /usr/share/ambience/ambience-black/sounds/black-ringtone.mp3
but I get error
What the correct way to do this ?
Thanks

P.S. Fixed it
Code:
dconf write /apps/personalRingtones/numbers/default "'/usr/share/ambience/ambience-black/sounds/black-ringtone.mp3'"

Last edited by Schturman; 2016-02-08 at 20:28.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#47
dconf write /apps/personalRingtones/numbers/default "'/usr/share/ambience/ambience-black/sounds/black-ringtone.mp3'"
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#48
Originally Posted by coderus View Post
dconf write /apps/personalRingtones/numbers/default "'/usr/share/ambience/ambience-black/sounds/black-ringtone.mp3'"
Yep, already fixed it. Thank you very much !
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#49
Working perfectly from my autoambience! Instead dependencies, I added checking command if Personal ringtone installed and if yes it will rewrite the same ringtone as in current ambience.
Andrey, thank you very much!
 
Mara's Avatar
Posts: 1,310 | Thanked: 820 times | Joined on Mar 2006 @ Irving, TX
#50
Waking up old thread...

Anyone using this with Sailfish X (Sony Xperia X)? It seems to install fine and I can add phone numbers (using international format) and audio files successfully from the Settings GUI as I verified them getting into dconf database using dconf read in terminal. The default ringtone plays even for contacts that I have set custom ringtone.

I tried stopping the Alien Dalvik but it didn't fix the issue.

Or is there some new/better way to get custom ringtones for Sailfish that I'm not aware?

EDIT: Seems that if I omit the initial "+" from the phone number it works. However, once you have received a call from a contact that is in the personal ringtone list, and I go back to the screen where the Personal ringtones are configured, it had replaced the contact name with a number that is not the actual phone number! (It still starts with a 1 but everything else is completely different and is one digit shorter than real phone number.) But if you check those entries with dconf tool they are all showing correct phone number?

Last edited by Mara; 2017-11-24 at 03:22.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:50.