What Is the %U Command in All My Programs Command?

What Is the %U Command in All My Programs Command?

I saw in my programs properties they have a "%u" in the end of the command, what does this do? Using Ubuntu 10.04.

e.g. My Chrome have the command: /opt/google/chrome/google-chrome %U for what this %u is used here?

2 Answers

When you associate a file with a command, you can call this command with several arguments. %u simply means that the file name should go there. It is useful so you can put arguments after the filename. There are several other flags you can use.

1

%u is used in Java's FileHandler to generate a unique field value.

From

A pattern consists of a string that includes the following special components that will be replaced at runtime:

* "/" the local pathname separator
* "%t" the system temporary directory
* "%h" the value of the "user.home" system property
* "%g" the generation number to distinguish rotated logs
* "%u" a unique number to resolve conflicts
* "%%" translates to a single percent sign "%"

Does that make sense in your particular context?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.