10
rated 0 times
[
10]
[
0]
/ answers: 1 / hits: 514
/ 3 Years ago, sun, june 20, 2021, 10:43:46
Lubuntu 16.04 - Openbox session
I can use the terminal to open a time-stamped file with gedit
:
gedit ~/$(date +%Y%m%d%H%M%S).txt
The command can also be used via a keyboard shortcut in Openbox.
<keybind key="W-4"> # gedit time-stamped file
<action name="Execute"><command>sh -c 'gedit ~/$(date +%Y%m%d%H%M%S).txt'</command></action>
</keybind>
But I can't do the same via the Exec=
line of a .desktop
file.
Exec=sh -c 'gedit ~/$(date +%Y%m%d%H%M%S).txt'
just creates a file called ~/.txt
So how do I get a .desktop file to do what I want?
More From » bash