• backslashs into .desktop file

    From alex@1j9448a02@lnx159sneakemail.com.invalid to alt.os.linux on Fri Sep 27 10:00:25 2024
    From Newsgroup: alt.os.linux

    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?
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From J.O. Aho@user@example.net to alt.os.linux on Fri Sep 27 14:52:02 2024
    From Newsgroup: alt.os.linux

    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?
    --
    //Aho
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From alex@1j9448a02@lnx159sneakemail.com.invalid to alt.os.linux on Fri Sep 27 20:31:11 2024
    From Newsgroup: alt.os.linux

    Il 27/09/24 14:52, J.O. Aho ha scritto:
    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?


    reread the last part of what I wrote
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Paul@nospam@needed.invalid to alt.os.linux on Fri Sep 27 21:57:45 2024
    From Newsgroup: alt.os.linux

    On Fri, 9/27/2024 4:00 AM, alex wrote:
    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?

    This is some of that fine Poettering mess.

    "Bug 1313473 - dashes are unicode \x2d in systemd warning message in journal"

    https://bugzilla.redhat.com/show_bug.cgi?id=1313473

    Conversion or replacement, may be selective. If you can understand
    what they are doing of course. The other article warns that the
    information may be context sensitive and you don't want to remove
    the Unicode.

    https://unix.stackexchange.com/questions/312175/using-hyphens-in-systemd-arguments

    This is beyond my capabilities.

    Paul
    --- Synchronet 3.20a-Linux NewsLink 1.114