Skip to content

Commit 5c8a9f4

Browse files
committed
define behavior for target programs where no path found
1 parent fa92507 commit 5c8a9f4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Standards/CCSMB-11.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,23 @@ This setting MUST be an array of absolute directories. Each directory SHOULD con
6464

6565
Compliant software MUST search all directories (in the order listed). Compliant software MUST NOT assume the filenames in each directory are the same as the application names; however, software management tooling SHOULD install application specifications with a sensible filename. Application specifications SHOULD use the extension `.desktop`; `.lua` SHOULD also be allowed, but software management tooling SHOULD avoid installing specifications with this extension, to avoid confusion with actual programs.
6666

67-
If this setting is not set, compliant software MAY search for the following directories in the order listed:
67+
If this setting is not set, compliant software MAY search in the following directories in the order listed:
6868
1. `/Application Specifications`
6969
2. `/AppSpecs`
7070
3. `/Applications`
7171
4. `/etc/applications`
7272
5. `/etc/ccsmb/applications`
7373
6. `/usr/share/applications`
74-
6. `/usr/share/ccsmb/applications`
75-
7. `/Library/Application Specifications`
74+
7. `/usr/share/ccsmb/applications`
75+
8. `/Library/Application Specifications`
76+
77+
If none of the directories listed above exist, compliant software MAY create a directory of its choice, provided it sets this setting and `ccsmb_desktop.install_target` (defined below).
7678

7779
### `ccsmb_desktop.install_target`
7880

7981
This setting MUST be a string containing a path to a directory. The directory MUST be created. Compliant software management tooling MUST install applications in this directory.
8082

81-
If the setting is not specified, software management tooling MUST search for all of the following directories and place specifications into them if they exist:
83+
If the setting is not specified, software management tooling MUST search for all of the following directories and place specifications into them if the first match exists:
8284
1. `/Application Specifications`
8385
2. `/AppSpecs`
8486
3. `/Applications`
@@ -88,4 +90,4 @@ If the setting is not specified, software management tooling MUST search for all
8890
7. `/usr/share/ccsmb/applications`
8991
8. `/Library/Application Specifications`
9092

91-
Software management tooling MAY create a directory of its choosing from the above list if none exist. If software management tooling chooses to do this, the `ccsmb_desktop.install_target` setting MUST be set by the tooling.
93+
Software management tooling MAY create a directory of its choosing from the above list if none exist. If software management tooling chooses to do this, the `ccsmb_desktop.install_target` and `ccsmb_desktop.search_targets` settings MUST be set by the tooling.

0 commit comments

Comments
 (0)