Support and General Use > User Interface and Voice

A shortcut that requires a name

(1/2) > >>

iPodVT:
ipod6g
dev build e3fb41919d-250604

The Rockbox Manual for Ipod Classic states in 5.13. Shortcuts:

Only “type” and “data” are required (except if type is “separator” in which case “data”
is also not required).

But if I don't supply a name in the following shortcut spec, the shortcut does not get added to my Shortcuts menu at runtime.

[shortcut]
type: time
data: sleep 1
name: Sleep in 1 Minute
icon: -1
talkclip:

iPodVT:

--- Quote from: iPodVT on June 04, 2025, 09:20:55 PM ---[shortcut]
type: time
data: sleep 1
name: Sleep in 1 Minute
icon: -1
talkclip:

--- End quote ---

If anyone is wondering why I would use a 1 minute sleep timer, it's to expedite the investigation of sleep and/or shutdown related issues.

chris_s:
Looks like the manual needs to be updated. Note that a bit further down it explains, for the shortcut type 'time' specifically, that a name is required, unless data is 'sleep' and it is not followed by a number.

Having said that, it seems to make sense to change the code, so that some default value is displayed in all cases, when a name hasn't been provided.

iPodVT:
I deleted the original content of this posting because I had made too many misstatements re 'ignored' and 'required'.  Sorry about that.

iPodVT:
Please ignore my immediately preceding post - my brain is fuzzy and I made some misstatements re the 'required' and 'ignored' conditions.  My apologies.

Navigation

[0] Message Index

[#] Next page

Go to full version