Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  A shortcut that requires a name
« previous next »
  • Print
Pages: [1]

Author Topic: A shortcut that requires a name  (Read 289 times)

Offline iPodVT

  • Member
  • *
  • Posts: 480
A shortcut that requires a name
« on: June 04, 2025, 09:20:55 PM »
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:
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 480
Re: A shortcut that requires a name
« Reply #1 on: June 05, 2025, 11:30:27 AM »
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:

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.
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 306
Re: A shortcut that requires a name
« Reply #2 on: June 06, 2025, 10:20:24 AM »
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.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 480
Re: A shortcut that requires a name
« Reply #3 on: June 06, 2025, 11:37:08 AM »
I deleted the original content of this posting because I had made too many misstatements re 'ignored' and 'required'.  Sorry about that.
« Last Edit: June 06, 2025, 11:54:59 AM by iPodVT »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 480
Re: A shortcut that requires a name
« Reply #4 on: June 06, 2025, 11:52:10 AM »
Please ignore my immediately preceding post - my brain is fuzzy and I made some misstatements re the 'required' and 'ignored' conditions.  My apologies.
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 306
Re: A shortcut that requires a name
« Reply #5 on: June 06, 2025, 01:33:52 PM »
should be fixed now: https://build.rockbox.org/
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 480
Re: A shortcut that requires a name
« Reply #6 on: June 06, 2025, 05:52:28 PM »
Looks and works great - thanks very much.

I waited several hours to install the dev build and ended up getting the additional improvements in the further improved version 855c4d666a.

FYI:  What brought this issue to my attention was that I am in the process of eliminating my own custom names from my shortcuts.txt file in order to be more compliant with Rockbox's language translations.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  A shortcut that requires a name
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.052 seconds with 17 queries.