list-desktop-profiles --version (return code: 0)
Usage: list-desktop-profiles [OPTIONS]
As the number of .listing files grows, trying to find out which profiles are
present/meet certain criteria becomes increasingly unpleasant. This script
remedies that, allowing you to just list your criteria, and outputting all
profiles meeting those criteria.
Options controlling the used .listing files:
-d | --directory: directory where to look for .listing files
(default=/etc/desktop-profiles)
Options for filtering the shown profiles:
-c, --comment | --description:
profile description matches the regexp that is the next argument
-k, --kind:
profile kind matches the regexp that is the next argument
(profile kind is in [KDE, GCONF, XDG_DATA, XDG_CONFIG, GNUSTEP, ROX, UDE])
-l, --location:
profile location matches the regexp that is the next argument
-n, --name:
profile name matches the regexp that is the next argument
-p, --precedence:
next argument gives the comparison to be done with the profiles precedence
value. Use 'gt' for 'greater then', 'lt' for 'less then', 'ge' for
'greater then or equal to', 'le' for 'less then or equal to', 'eq' for
'equal to', and 'ne' for 'not equal to' (e.g. -p 'ge 0')
-r, --requirement:
profile requirements field matches the regexp that is the next argument
-u, --user:
profile requirements are met for the user given in the next argument
Other Options:
-e. --entry-format: format string for list entries,
May use the variables NAME, LOCATION, PRECEDENCE,KIND,
REQUIREMENTS, DESCRIPTION, and FILE. First 6 of which refer
to the respective field for that profile, while FILE refers
to the .listing file the profile is in.
Parentheses, &, and characters interpreted specially by the
shell should be escaped.
(by default it just outputs the profile line)
-h, --help : display this helpmessage
-s, --sort-key: fieldname of the profile field to sort on, one of
[name, location, precedence, requirements, kind, description]
this defaults to 'name'
(Note: you may also use upper case if you want :)
list-desktop-profiles --help (return code: 0)
Usage: list-desktop-profiles [OPTIONS]
As the number of .listing files grows, trying to find out which profiles are
present/meet certain criteria becomes increasingly unpleasant. This script
remedies that, allowing you to just list your criteria, and outputting all
profiles meeting those criteria.
Options controlling the used .listing files:
-d | --directory: directory where to look for .listing files
(default=/etc/desktop-profiles)
Options for filtering the shown profiles:
-c, --comment | --description:
profile description matches the regexp that is the next argument
-k, --kind:
profile kind matches the regexp that is the next argument
(profile kind is in [KDE, GCONF, XDG_DATA, XDG_CONFIG, GNUSTEP, ROX, UDE])
-l, --location:
profile location matches the regexp that is the next argument
-n, --name:
profile name matches the regexp that is the next argument
-p, --precedence:
next argument gives the comparison to be done with the profiles precedence
value. Use 'gt' for 'greater then', 'lt' for 'less then', 'ge' for
'greater then or equal to', 'le' for 'less then or equal to', 'eq' for
'equal to', and 'ne' for 'not equal to' (e.g. -p 'ge 0')
-r, --requirement:
profile requirements field matches the regexp that is the next argument
-u, --user:
profile requirements are met for the user given in the next argument
Other Options:
-e. --entry-format: format string for list entries,
May use the variables NAME, LOCATION, PRECEDENCE,KIND,
REQUIREMENTS, DESCRIPTION, and FILE. First 6 of which refer
to the respective field for that profile, while FILE refers
to the .listing file the profile is in.
Parentheses, &, and characters interpreted specially by the
shell should be escaped.
(by default it just outputs the profile line)
-h, --help : display this helpmessage
-s, --sort-key: fieldname of the profile field to sort on, one of
[name, location, precedence, requirements, kind, description]
this defaults to 'name'
(Note: you may also use upper case if you want :)