WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Whats with the %U? (openbox)  (Read 2328 times)

Offline ananix

  • Full Member
  • ***
  • Posts: 174
Whats with the %U? (openbox)
« on: September 02, 2012, 06:54:41 PM »
Seems many programs adds %U to execute per default in tce.openbox.xml
What is its intentions?
« Last Edit: September 03, 2012, 11:09:33 AM by curaga »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Whats with the %U? (openbox)
« Reply #1 on: September 03, 2012, 11:09:53 AM »
Edited the title, it wasn't really descriptive without the wm.
The only barriers that can stop you are the ones you create yourself.

Offline ananix

  • Full Member
  • ***
  • Posts: 174
Re: Whats with the %U? (openbox)
« Reply #2 on: September 03, 2012, 11:15:19 AM »
thx maybe ill get more replies then :)

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Whats with the %U? (openbox)
« Reply #3 on: September 03, 2012, 09:02:54 PM »
It's actually not (or at least only partially) related to the wm (Any wm that makes up it's own field codes is ignoring the freedesktop standards).

The %U is intended to be expanded by file managers / etc with a list of files. Useful if your application needs the list of files (technically URLs) to open to come before or after specific flags, to make sure escaping of spaces in filenames happen right, that sort of thing.

If your program can only open one file at a time, it's .desktop file should be using a lower case u (%u), or %f if it specifcally needs a filename, not a url, etc. More can be seen in the freedesktop standard:

http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

Offline ananix

  • Full Member
  • ***
  • Posts: 174
Re: Whats with the %U? (openbox)
« Reply #4 on: September 14, 2012, 01:28:27 PM »
yes just wondering what its doing as default from the tcz packages in the wbar sorry for formulating this post so bad, think it was just pis...ing me off so i was short from the head. I understand its not a way of doing things for tiny core so ill direct it at the tcz maintainer