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,506 of 107,822    |
|    Paul to alex    |
|    Re: [ubuntu][mate] desktop entry it does    |
|    24 Sep 24 05:43:16    |
      From: nospam@needed.invalid              On Tue, 9/24/2024 3:33 AM, alex wrote:       > $ lsb_release -a && echo Desktop environment: $DESKTOP_SESSION       > Description:ย ย ย Ubuntu 24.04.1 LTS       > Desktop environment: mate       >       > $ pwd       > /home/USER/.local/share/applications       >       > $ cat 'Copy Tanti auguri.desktop'       > [Desktop Entry]       > Name=Copy Tanti auguri       > Exec=sh -c "echo -n \"Tanti auguri๐       พ๐๐๐๐๐\" | xclip -selection clipboard"       > Type=Application       > Icon=/home/USER/svago/resources/icons/cake.png       > X-Desktop-File-Install-Version=0.27       >       > $ desktop-file-validate Copy\ Tanti\ auguri.desktop && echo OK       > OK       >       > https://pasteboard.co/C5Xr8c0RD1Rj.png       >       > Why?              I could find one hint that "desktop-file-validate does not check the Exec".              You just know the Exec line is antagonizing the software :-)              Remove the decorative elements and retest. Maybe this much works ?              Exec=sh -c "echo -n Tanti auguri | xclip -selection clipboard"              Add back the other materials, as you get things to work.              I checked this much in the shell, and it was OK. This       means the shell handles more than just ASCII. Good so far.               echo -n Tanti auguri๐       พ๐๐๐๐๐              Then you can try this much.               echo -n Tanti auguri๐       พ๐๐๐๐๐ | xclip -selection clipboard              You know how it is with trying to beat shell interpretations -- you       never know how many shells are interpreting your workmanship.               "echo -n \\\"Tanti auguri๐       พ๐๐๐๐๐\\\" | xclip -selection clipboard"              But start simple to begin with, so you are "standing on solid ground" while       working.       If you push for the most extravagant formulation first, there could be multiple       problems with the line, and it can take a lot of hours before it is going       to "just work" for you.               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