When keeping it bug free is too bothersome.
You can make a script and call that script via the Exec= line.
During creation of a script you could add
Code: Select all
echo 'DEBUG $variable1='$variable1
When keeping it bug free is too bothersome.
Code: Select all
echo 'DEBUG $variable1='$variable1
Code: Select all
[Desktop Action 1]
Name=XZM-2-PORTEUX-OPTIONAL-SH-2
Icon=password-copy
Exec=file=%f; mkdir /mnt/nvme0n1p3/porteux/optional/VIC && cd /mnt/nvme0n1p3/porteux/optional/VIC && tar cf %f.tgz %f && tar -xf %f.tgz && rm %f.tgz && /mnt/nvme0n1p3/porteux/X-ON-DEMAND/1-SYSTEM-STUFF/XZM-CREATION/TWO-CLICK-CREATE-XZM/INFO/RAVA-ONE-LINER/ONE-LINER-PLUS.sh
Code: Select all
#!/bin/bash
/opt/porteux-scripts/dir2xzm /mnt/nvme0n1p3/porteux/optional/VIC
mv /mnt/nvme0n1p3/porteux/optional/VIC/VIC.xzm /mnt/nvme0n1p3/porteux/optional/VIC-$(date +%y-W%W-%e_%H-%M-%S-%b).xzm
rm -rf yes /mnt/nvme0n1p3/porteux/optional/VIC
dolphin /mnt/nvme0n1p3/porteux/optional
This is a syntax the .desktop files use.
https://www.baeldung.com/linux/pass-com ... ash-scriptBash Beginner Tutorials
Passing Arguments to Bash Scripts
In the third part of the Bash Beginner Series, you'll learn to pass arguments to a bash shell script. You'll also learn about special bash shell variables.
Arguments can be useful, especially with Bash!
So far, you have learned how to use variables to make your bash scripts dynamic and generic, so it is responsive to various data and different user input.
In this tutorial, you will learn how you can pass variables to a bash scripts from the command line.
[…]
https://www.baeldung.com/linux/use-comm ... ash-script1. Overview
Linux has a rich and powerful set of ways to supply parameters to bash scripts.
In this tutorial, we’ll look at a few ways of doing this.
2. Argument List
Arguments can be passed to a bash script during the time of its execution, as a list, separated by space following the script filename. This comes in handy when a script has to perform different functions depending on the values of the input.
For instance, let’s pass a couple of parameters to our script start.sh:
sh start.sh development 100
[…]
And much more via this search:1. Introduction
We’ve previously examined how to pass command-line arguments to a bash script. In this tutorial, we’ll take a look at how we can use these arguments inside the bash script.
[…]