/usr/share/augeas/lenses/dist/tests/test_desktop.aug is in augeas-lenses 1.2.0-0ubuntu1.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | module Test_desktop =
let conf = "# A comment
[Desktop Entry]
Version=1.0
Type=Application
Name=Foo Viewer
# another comment
Comment=The best viewer for Foo objects available!
TryExec=fooview
Exec=fooview %F
Icon=fooview
MimeType=image/x-foo;
X-KDE-Library=libfooview
X-KDE-FactoryName=fooviewfactory
X-KDE-ServiceType=FooService
"
test Desktop.lns get conf =
{ "#comment" = "A comment" }
{ "Desktop Entry"
{ "Version" = "1.0" }
{ "Type" = "Application" }
{ "Name" = "Foo Viewer" }
{ "#comment" = "another comment" }
{ "Comment" = "The best viewer for Foo objects available!" }
{ "TryExec" = "fooview" }
{ "Exec" = "fooview %F" }
{ "Icon" = "fooview" }
{ "MimeType" = "image/x-foo;" }
{ "X-KDE-Library" = "libfooview" }
{ "X-KDE-FactoryName" = "fooviewfactory" }
{ "X-KDE-ServiceType" = "FooService" } }
(* Entries with square brackets *)
test Desktop.lns get "[Desktop Entry]
X-GNOME-FullName[ca]=En canadien
" =
{ "Desktop Entry"
{ "X-GNOME-FullName[ca]" = "En canadien" } }
|