Exec=systemctl status "mnt-router\x2dstorage.automount"
but then the command wouldn't work
On 27/09/2024 10.00, alex wrote:
Exec=systemctl status "mnt-router\x2dstorage.automount"
but then the command wouldn't work
Have you tried to escape the backslash?
Hello everyone, first some info
$ lsb_release -a && echo Desktop environment: $DESKTOP_SESSION Description: Ubuntu 24.04.1 LTS
Desktop environment: mate
Let's do some tests
$ systemctl status "mnt-router\x2dstorage.automount"
● mnt-router\x2dstorage.automount
Loaded: loaded (/etc/fstab; generated)
blabla...
OK, however to execute the command more conveniently, I created a desktop entry
$ cat xxx.desktop
[Desktop Entry]
Name=xxx
Icon=xxx
Exec=systemctl status "mnt-router\x2dstorage.automount"
Terminal=true
Type=Application
$ desktop-file-install --dir ~/.local/share/applications xxx.desktop
The problem is that the item does not appear in the dashboard
https://pasteboard.co/59WVdFN8lJPn.png
The problem is that maybe I should remove the backslashs
$ grep '\\' xxx.desktop
Exec=systemctl status "mnt-router\x2dstorage.automount"
but then the command wouldn't work
$ systemctl status "mnt-routerx2dstorage.automount"
Unit mnt-routerx2dstorage.automount could not be found.
So how can it be solved?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 76:00:19 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,533 |