mirror of
https://github.com/Kron4ek/Conty
synced 2025-01-29 20:34:43 +01:00
Add additional arguments to Conty when exporting desktop files
If there are arguments after the "-d" argument, append them to Conty in desktop files.
This commit is contained in:
parent
850b0571e4
commit
14e606729f
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,7 @@ script_version="1.22"
|
|||
|
||||
# Important variables to manually adjust after modification!
|
||||
# Needed to avoid problems with mounting due to an incorrect offset.
|
||||
script_size=26746
|
||||
script_size=26757
|
||||
utils_size=2507588
|
||||
|
||||
# Full path to the script
|
||||
|
@ -808,6 +808,7 @@ if [ "$(ls "${mount_point}" 2>/dev/null)" ] || \
|
|||
cd "${mount_point}"/usr/share/applications || exit 1
|
||||
|
||||
echo "Exporting..."
|
||||
shift
|
||||
for f in *.desktop */ */*.desktop; do
|
||||
if [ "${f}" != "*.desktop" ] && [ "${f}" != "*/*.desktop" ] && [ "${f}" != "*/" ]; then
|
||||
if [ -d "${f}" ]; then
|
||||
|
@ -821,7 +822,7 @@ if [ "$(ls "${mount_point}" 2>/dev/null)" ] || \
|
|||
if [ "${line_function}" = "Name" ]; then
|
||||
line="${line} (Conty)"
|
||||
elif [ "${line_function}" = "Exec" ]; then
|
||||
line="Exec=\"${script}\" $(echo "${line}" | tail -c +6)"
|
||||
line="Exec=\"${script}\" $@ $(echo "${line}" | tail -c +6)"
|
||||
elif [ "${line_function}" = "TryE" ]; then
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue