Re: Patch: libgnome lockdown schemas



So, I've added two more keys.  disable_printing and
disable_print_setup.  These are only implemented in epiphany, but should
be global keys.

I also fixed Christian's complaint.  Sorry about that, that was my
description.

My new version is attached.

Thanks,
    Chris

On Fri, 2004-01-09 at 04:37, Matt Keenan wrote:
> Attached is a patch for libgnome to create a new schemas file.
> 
> 	desktop_gnome_lockdown.schemas.in
> 
> This file contains global lockdown keys, for creation under
> 
> 	/desktop/gnome/lockdown/

<?xml version="1.0"?>
<gconfschemafile>
  <schemalist>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/disable_command_line</key>
      <applyto>/desktop/gnome/lockdown/disable_command_line</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Disable Command Line</short>
        <long>Disable access to a terminal.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/restrict_application_launching</key>
      <applyto>/desktop/gnome/lockdown/restrict_application_launching</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Restrict Application Launching</short>
        <long>Turn on/off restricted application launching.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/allowed_applications</key>
      <applyto>/desktop/gnome/lockdown/allowed_applications</applyto>
      <owner>gnome</owner>
      <type>list</type>
      <list_type>string</list_type>
      <default>[/usr/bin/gnome-terminal,/usr/bin/mozilla,/usr/bin/staroffice,/usr/bin/evolution-1.4,/usr/bin/file-roller,/usr/bin/gcalctool,/usr/bin/gucharmap,/usr/bin/gnome-dictionary,/usr/bin/gedit,/usr/bin/freecell,/usr/bin/gtali,/usr/bin/gataxx,/usr/bin/glines,/usr/bin/gnect,/usr/bin/gnibbles,/usr/bin/gnotski,/usr/bin/iagno,/usr/bin/mahjongg,/usr/bin/gnomine,/usr/bin/gnobots2,/usr/bin/same-gnome,/usr/bin/gnome-stones,/usr/bin/gnotravex,/usr/bin/eog,/usr/bin/ggv,/usr/bin/gaim,/usr/bin/gnome-cd,/usr/bin/gnome-sound-recorder,/usr/bin/gnome-volume-control,/usr/bin/bug-buddy,/usr/bin/glade-2,/usr/bin/YaST2,/usr/bin/gconf-editor,/usr/bin/gfloppy,/usr/bin/gdmsetup,/usr/bin/gdmflexiserver,/usr/bin/gnome-system-monitor,/usr/bin/gnome-search-tool,/usr/bin/dia,/usr/bin/gtkam,/usr/bin/gimp-1.3,/usr/bin/gthumb,/usr/java/j2re1.4.2_01/bin/ControlPanel,/usr/java/j2redefault/bin/jmplay,/usr/bin/totem,/usr/bin/mrproject,/usr/bin/gnomemeeting,/usr/bin/jdictionary,/usr/bin/jdiskreport,/usr/bin/jedit,/usr/bin/jgraphpad,/usr/bin/cddbslave2-properties,/usr/bin/gnome-cd-properties,/usr/bin/gnome-file-type-properties,/usr/bin/gnome-panel-preferences,/usr/bin/gnome-default-applications-properties,/usr/bin/gnome-session-properties,/usr/bin/gnome-background-properties,/usr/bin/gnome-font-properties,/usr/bin/gnome-ui-properties,/usr/bin/gnome-display-properties,/usr/bin/xscreensaver-demo,/usr/bin/nautilus,/usr/bin/gnome-sound-properties,/usr/bin/userpasswd,/usr/bin/gpilotd-control-applet,/usr/bin/gnome-mouse-properties,/usr/bin/gnome-network-preferences,/usr/bin/nautilus-file-management-properties,/usr/bin/gnome-keybinding-properties,/usr/bin/acme-properties,/usr/bin/gnome-keyboard-layout,/usr/bin/gnome-keyboard-properties,/usr/bin/gnome-theme-manager,/usr/bin/gnome-window-properties,/usr/bin/gnome-accessibility-keyboard-properties,/usr/bin/yelp,/usr/bin/gnome-help]</default>
      <locale name="C">
        <short>Allowed Applications</short>
        <long>List of allowed applications that can be launched.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/restrict_locations</key>
      <applyto>/desktop/gnome/lockdown/restrict_locations</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Restrict Locations</short>
        <long>Turn on/off restricted locations.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/allowed_locations</key>
      <applyto>/desktop/gnome/lockdown/allowed_locations</applyto>
      <owner>gnome</owner>
      <type>list</type>
      <list_type>string</list_type>
      <default>[system:///,network:///]</default>
      <locale name="C">
        <short>Allowed Locations</short>
        <long>List of browsable locations.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/disable_force_quit</key>
      <applyto>/desktop/gnome/lockdown/disable_force_quit</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Disable Force Quit</short>
        <long>Disable ability to force quit an application.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/disable_save_to_disk</key>
      <applyto>/desktop/gnome/lockdown/disable_save_to_disk</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Disable Saving files to disk</short>
        <long>Disable ability for applications to save files to the disk.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/disable_printing</key>
      <applyto>/desktop/gnome/lockdown/disable_printing</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Disable Printing</short>
        <long>Disable ability for applications to print.</long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/desktop/gnome/lockdown/disable_print_setup</key>
      <applyto>/desktop/gnome/lockdown/disable_print_setup</applyto>
      <owner>gnome</owner>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Disable Print Setup</short>
        <long>Disable ability for the user to change print settings.
Print command will just print whatever is there, instead of showing a
print dialog.</long>
      </locale>
    </schema>
  </schemalist>
</gconfschemafile>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]