guidus.desktop: contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$")

Bug #2059036 reported by vitaly-zdanevich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mkusb
New
Undecided
Unassigned

Bug Description

Hi, on Gentoo I got this QA notice warning during installation of my ebuild:

```
* QA Notice: This package installs one or more .desktop files that do not
 * pass validation.
 *
 * /usr/share/applications/guidus.desktop: error: value "bash -c "declare -i mfnt=$(tail -n1 $HOME/.mkusb/fontsave);if [ $mfnt -lt 11 ];then mfnt=11;fi ; xterm -title 'guidus console - Do USB Stuff' -fa default -fs $mfnt -bg '#2b2c2b' -fg '#f0f0f0' -sb -rightbar -e guidus %f"" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$")
 * /usr/share/applications/guidus.desktop: error: value "bash -c "declare -i mfnt=$(tail -n1 $HOME/.mkusb/fontsave);if [ $mfnt -lt 11 ];then mfnt=11;fi ; xterm -title 'guidus console - Do USB Stuff' -fa default -fs $mfnt -bg '#2b2c2b' -fg '#f0f0f0' -sb -rightbar -e guidus %f"" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$")
 * /usr/share/applications/guidus.desktop: error: value "bash -c "declare -i mfnt=$(tail -n1 $HOME/.mkusb/fontsave);if [ $mfnt -lt 11 ];then mfnt=11;fi ; xterm -title 'guidus console - Do USB Stuff' -fa default -fs $mfnt -bg '#2b2c2b' -fg '#f0f0f0' -sb -rightbar -e guidus %f"" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$")
 * /usr/share/applications/guidus.desktop: error: value "bash -c "declare -i mfnt=$(tail -n1 $HOME/.mkusb/fontsave);if [ $mfnt -lt 11 ];then mfnt=11;fi ; xterm -title 'guidus console - Do USB Stuff' -fa default -fs $mfnt -bg '#2b2c2b' -fg '#f0f0f0' -sb -rightbar -e guidus %f"" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$")
 * /usr/share/applications/guidus.desktop: warning: value "Application;System;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
 * /usr/share/applications/mkusb-plug.desktop: warning: value "Application;System;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
 * /usr/share/applications/mkusb.desktop: warning: value "Application;System;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
 *
```

Revision history for this message
sudodus (nio-wiklund) wrote (last edit ):

Which method did you use to install mkusb in gentoo?

I never tested mkusb in gentoo, and I can easily understand, that there can be several problems. mkusb is intended to be used in Ubuntu and Debian.

During early development phases I tried to make it work also in some other 'major' linux distros, but there has been no response from other distros than Ubuntu, Debian and respins from those distros. So now we cannot expect dus, guidus and other tools in the mkusb package to work is linux distros that are very different from Ubuntu and Debian.

Until now, with the response from you. Please explain how you want to use it, (which tools and which tasks) and I will try to help you do it, probably by using command line tools.

Revision history for this message
vitaly-zdanevich (vitaliy-zdanevich) wrote :

> Which method did you use to install mkusb in gentoo?

My ebuild https://github.com/gentoo/guru/blob/dev/sys-boot/mkusb/mkusb-23.2.0.ebuild

> mkusb is intended to be used in Ubuntu and Debian.

I think the distribution is not important here, just another package manager. Yesterday I successfully created USB with mkusb, on Gentoo.

> Please explain how you want to use it

Just tried USB with persistent storage, but it veeeeery slow.

Do you know how to make a normal install to USB without booting from the second USB?

Revision history for this message
sudodus (nio-wiklund) wrote :

0. Interesting comments :-)

I don't know why your persistent live system is very slow. It is not my experience. Is the USB drive very slow? Is there not enough RAM? Are you using the boot option 'toram'?

Answers

1. Boot from a live (live-only) USB system with the boot option 'toram', unmount the partitions and you can install into the same drive. But I would not recommend it, because if you make a mistake, you won't have a working install drive and have to start all over to create a live USB drive. See this link,

https://askubuntu.com/questions/855039/can-ubuntu-be-installed-to-the-pendrive-it-was-booted-from/855298#855298

2. It is possible to extract and clone from a compressed image of installed systems. Ubuntu provides such images, that can be used (extracted and cloned) 'anywhere' and 'from anywhere'. See this link (about an Ubuntu alternative),

https://ubuntuforums.org/showthread.php?t=2474692

and this link about EasyOS,

https://easyos.org/

Revision history for this message
vitaly-zdanevich (vitaliy-zdanevich) wrote :

> Is there not enough RAM?

RAM is 16 GB, live mode without persistence - boot is much faster. Maybe my USB stick is very cheap. I tried toram also.

> unmount the partitions and you can install into the same drive

Wow, thanks.

Wow I found https://cdimage.ubuntu.com/ubuntu/daily-preinstalled/pending/

> and this link about EasyOS

Why do you like it?

Revision history for this message
vitaly-zdanevich (vitaliy-zdanevich) wrote :

Oh, by the links I see preinstalled images only for arm64 :(

Revision history for this message
sudodus (nio-wiklund) wrote :

EasyOS is an interesting alternative developed by the person why created Puppy Linux. But I use Ubuntu and Lubuntu as my main operating systems.

Try this link:

http://cdimage.ubuntu.com/ubuntu-server/jammy/daily-preinstalled/current/

I find the following 'amd64' compressed image file there:

http://cdimage.ubuntu.com/ubuntu-server/jammy/daily-preinstalled/current/jammy-preinstalled-server-amd64.img.xz

Revision history for this message
vitaly-zdanevich (vitaliy-zdanevich) wrote :

Thanks, but this is preinstalled server edition, not desktop :(

Revision history for this message
sudodus (nio-wiklund) wrote :

Yes, but when you install a desktop meta package it will become a desktop system

sudo apt install ubuntu-desktop

or

sudo apt install lubuntu-desktop

...

Revision history for this message
vitaly-zdanevich (vitaliy-zdanevich) wrote :

Thanks, but what about .desktop files?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.