home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 106,538 of 107,822   
   Paul to alex   
   Re: backslashs into .desktop file   
   27 Sep 24 21:57:45   
   
   From: nospam@needed.invalid   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca