Ask / Submit
4

How to add sounds to the default list of ringtones?

asked 2017-10-14 17:12:43 +0200

Freddo gravatar image

Greetings!

Just got Sailfish X, my first experience with Sailfish. I have about 10 sound files I've been using in the past decade as ringtones and for notifications, and would like to add them to the default list of ringtone sounds so I don't have to scroll like crazy thru the "Select from music files" every time. Is that possible, and if so, how?

Grateful for any help.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
4

answered 2017-10-14 19:17:52 +0200

Edz gravatar image

updated 2017-10-14 19:46:40 +0200

I don't know how, I have tried in the past and failed miserably, but I do know where the listed ringtones are.

The ringtones are stored here; /usr/share/sounds/jolla-ringtones/stereo

So, after an hour I managed to list an album in the ringtones list of my Jolla1.

Basically, I added a sounds folder to /usr/share/sounds/jolla-ringtones/**sounds**- put the music you want into the sounds folder.

I then added a sounds.index file to /usr/share/sounds/jolla-ringtones/**sounds.index** - add the track titles to the sounds.index file.

The contents of the sounds.index file are laid out like this;

    {
    "translationCatalog" : "acdc - back-in-black",
    "files" : [
         { "displayName" : "ACDC - Back in black", "fileName" : "Back In Black.mp3" },
         { "displayName" : "ACDC - Givin' The Dog A Bone", "fileName" : "Givin' The Dog A Bone.mp3"},
         { "displayName" : "ACDC - Have A Drink On Me", "fileName" : "Have A Drink On Me.mp3" },
         { "displayName" : "ACDC - Hells Bells", "fileName" : "Hells Bells.mp3" },
         { "displayName" : "ACDC - Let Me Put My Love Into You",  "fileName" : "Let Me Put My Love Into You.mp3" },
         { "displayName" : "ACDC - Rock And Roll Ain't Noise Pollution", "fileName" :"Rock And Roll Ain't Noise Pollution.mp3" },
         { "displayName" : "ACDC - Shake A Leg", "fileName" : "Shake A Leg.mp3" },
         { "displayName" : "ACDC - Shoot To Thrill", "fileName" : "Shoot To Thrill.mp3"},
         { "displayName" : "ACDC - What Do You Do For Money Honey", "fileName" : "What Do You Do For Money Honey.mp3" },
         { "displayName" : "ACDC - You Shook Me All Night Long", "fileName" : "You Shook Me All Night Long.mp3"}
    ]
}

After this, you may need to give lipstick.service a nudge if you don't see the tracks in Ringtones, nudge the service with this command; systemctl --user restart lipstick.service (restarts home screen).

You should now have the desired tracks showing in Settings/Sounds and feedback/Ringtone.

Long winded, but works......perhaps there is a much easier way?

edit flag offensive delete publish link more

Comments

1

Isn't there a likelihood that these will be overwritten on an OS update? Surely anything in /usr/ will go when there's an update. How about simply creating a symlink to the user location? Would that work? I don't have time to try, busy sorting out other problems at the moment ;-)

toner_cloud ( 2017-10-15 14:26:57 +0200 )edit
1

I didn't think of symlinking. Upon trying that, it doesn't work. none of my chosen sounds are in 'Settings/Sounds and feedback/Ringtone'.

Keeping with the routine laid out above, I put my music into a 'sounds' folder in '/home/nemo/Music' along with 'sounds.index' and then symlinked the folder and file to '/usr/share/sounds/jolla-ringtones/' but, as stated, it doesn't work.

And, yes what I initially suggested will be overwritten, I hadn't considered that aspect when answer the question, as much like yourself, time is always at a premium - we are all busy my friend :)

Edz ( 2017-10-15 17:07:55 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2017-10-14 17:12:43 +0200

Seen: 785 times

Last updated: Oct 14 '17