403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.16.139.116
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_desktop.aug
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" } }

(* Test: Desktop.lns
     Allow @ in setting (GH issue #92) *)
test Desktop.lns get "[Desktop Entry]
Name[sr@latin] = foobar\n" =
    { "Desktop Entry"
      { "Name[sr@latin]" = "foobar" } }

Youez - 2016 - github.com/yon3zu
LinuXploit