0

I carefully followed the instructions to add keyboard shortcuts to custom Nemo scripts as explained in this Ask Ubuntu answer and this Stack Overflow answer.

Although this technique works great to modify Nemo keyboard shortcuts, the instructions aren't working to add keyboard shortcuts to Nemo scripts on a Linux Mint Cinnamon 21.3 box. To help debug this issue, I would like to better understand the syntax of the example line that implements this functionality (this line is contained in the accels/nemo file, which is located in a folder pointed to by environment variable GNOME22_USER_DIR):

(gtk_accel_path "<Actions>/ScriptsGroup/script_file:\\s\\s\\shome\\sUSERNAME\\s.local\\sshare\\snemo\\sscripts\\sedit.sh" "F4")

  • Why are backslashes used instead of forward slashes?
  • Why is the use of \s needed?
  • Just to make sure, is \\s\\s\\s after /script_file: correct?

Edit: Shortly after posting this, I resolved the larger issue, but I'm still interested in learning the answers to the above questions.

2
  • If each \\s is equivalent to a /, then that looks like file:///home/... which is a reasonable instance of a file:// URI. No idea about anything else here, however. Commented Apr 13, 2024 at 18:31
  • @muru Thanks. What is defining that \\s is equivalent to /? Which spec is that? Commented Apr 13, 2024 at 18:34

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.