9.Desktop

Fetch .Desktop file from Remote/Local (SBUILD) Source (TYPE: NON_ENFORCED)

#Example ONLY
desktop:
 #Can contain one of (or all of): url, file, dir
 #If it contains multiple (or all), the builder WILL STOP UPON FIRST successful desktop file MATCH
  url: "#A Direct RAW URL to download a .desktop file"
  file: "#A Direct PATH to a .desktop file from ${SBUILD_OUTDIR} | ${SBUILD_TMPDIR}"
  dir: "#A Direct PATH to a Directory that contains at least 1 .Desktop"
#Another Example
desktop:
 #Can contain one of (or all of): url, file, dir
  url: "https://example.com/example.desktop"
  #If you only use `/example.desktop` or `example.desktop`, it is assumed as: ${SBUILD_OUTDIR}/example.desktop
  #Here, we specify explictly to use ${SBUILD_TMPDIR}
  file: "${SBUILD_TMPDIR}/example.desktop" 
  #You can just use `/usr/share` or `usr/share`, it is assumed as: ${SBUILD_OUTDIR}/usr/share
  dir: "usr/share" #will search in ${SBUILD_OUTDIR}/usr/share

file supports wildcard glob (*) pattern

desktop:
#Will search for a *.desktop file in ${SBUILD_TMPDIR} (picks first match)
  file: "${SBUILD_TMPDIR}/*.desktop"

dir supports wildcard glob (*) pattern

desktop:
  dir: "${SBUILD_OUTDIR}/usr/share/applications/assets*" 
#Will search inside all these dir (picks first match):
# ${SBUILD_OUTDIR}/usr/share/applications/assets-extras
# ${SBUILD_OUTDIR}/usr/share/applications/assets_res
# ${SBUILD_OUTDIR}/usr/share/applications/assetsXYZ

This MAY BE OVERWRITTEN, if x_exec.run does something to the file, otherwise is used as the default .Desktop file

Last updated

Was this helpful?