1. To create a shortcut you can use only the executable file or command without special characters.
This is the reason why it did not work before and not will work.
More about "exec" in:
https://specifications.freedesktop.org/ ... 01s07.html
There you have all the specifications how the shortcut should be created and not only.
I don't know for what you need the delay.
But you can always build your own script
For example:
A) Create script
own.mate.terminal in
/usr/local/bin
Code: Select all
sudo xed /usr/local/bin/own.mate.terminal
For security you can use
nano editor instead
xed
Code: Select all
#!/bin/bash
sleep 2s ; /usr/bin/mate-terminal
B) Check and grant the appropriate permissions for /usr/local/bin/own.mate.terminal
Check
Code: Select all
$ ls -l /usr/local/bin/own.mate.terminal
-rw-r--r-- 1 root root 47 mar 2 14:32 /usr/local/bin/own.mate.terminal
Grant
Code: Select all
sudo chmod 755 /usr/local/bin/own.mate.terminal
Check again
Code: Select all
$ ls -l /usr/local/bin/own.mate.terminal
-rwxr-xr-x 1 root root 47 mar 2 14:32 /usr/local/bin/own.mate.terminal
C) Then try to create a shortcut for /usr/local/bin/own.mate.terminal
Code: Select all
[Desktop Entry]
Type=Application
Icon=terminal
Name=own.mate.terminal
Exec=/usr/local/bin/own.mate.terminal
================================{
A little explanation about greater possibilities:
- Usually you can install in
/opt or
/usr/local/bin
More in
https://refspecs.linuxfoundation.org/FH ... index.html
But,
I personally advise you
* single files install to
/usr/local/bin
* large and complex projects to
/opt
Because
- Default in Linux Mint, path
/usr/local/bin exist in $PATH --> environmental variable in Linux
Code: Select all
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
path
/opt not exist there.
For creating a shortcut it doesn't matter.
But it matters if you want to run the command ( own.mate.terminal ) without a complete path ( /usr/local/bin/ ).
If you will want install to
/opt instead
/usr/local/bin and you will want use short command own.mate.terminal.
Then you will need create symbolic link from /usr/bin/own.mate.terminal to /opt/own.mate.terminal
If we assume that
/opt will for large projects then remember don't give
/opt to $PATH.
For each binary file or script in /opt create a symbolic link. ( from /usr/bin/name to /opt/file_name )
Or create a directory only for single binary files or scripts then you can add this path to $PATH.
( Remember to create the appropriate permissions for files and folders )
================================}
About
rcfile take into consideration that
- you probably replacing the original file
- mate-terminal works, but the window will pop up later