Results 1 to 5 of 5

Thread: Editing Unity launcher on guest account

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Beans
    7

    Editing Unity launcher on guest account

    Edubuntu has a default guest account that students can use without being able to destroy anything. I'm trying to change the items displayed by default in the Unity launcher, but I'm not sure how to do it.

    Any changes made from inside the guest account are reset on logout/login (as expected, that's the point of the guest account). The special Edubuntu menu editing tools appear to be designed for Gnome2-style menus only.

    (It would perhaps be better to phrase the question more generally as "how do I change things in an Edubuntu guest account?", but I thought I'd start out with something more specific.)

  2. #2
    Join Date
    Jan 2008
    Location
    Nappanee, IN
    Beans
    602
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Editing Unity launcher on guest account

    Your best bet is to login as guest, then do your editing with sudo su [username] from the terminal, entering your administrator password for [username] account when requested. You will have to enter your Linux commands from the terminal, but this should solve your permissions problem.

  3. #3
    Join Date
    Jun 2007
    Beans
    13,064

    Re: Editing Unity launcher on guest account

    You haven't mentioned what release of edubuntu as there would be major differences in how the default profile can be adjusted since unity first showed to now.

    In 12.10
    What shows in the Default launcher is determined by the key in
    /usr/share/glib-2.0/schemas/com.canonical.Unity.gschema.xml

    If opened in a text editor (root to edit) you'll see the key/schema -
    </key>
    </schema>
    <schema path="/com/canonical/unity/launcher/" id="com.canonical.Unity.Launcher" gettext-domain="unity">

    Listed below between the <default> .... <default> are the default launcher icons.
    You can carefully edit that list though a couple I wouldn't remove like 'unity://expo-icon'

    You'd need to carefully look at how the key is written when adding new .desktops,(if you are), follow exactly & I'd advise backing up the orig. file 1st.

    When done you'd run this command to set the schema
    Code:
    sudo glib-compile-schemas /usr/share/glib-2.0/schemas
    To return to the orig if needed - edit the file back using the backup as a guide or just replace your edited file with the backup.
    Then run the above command again to set.

  4. #4
    Join Date
    Feb 2010
    Beans
    7

    Re: Editing Unity launcher on guest account

    Thank you!

    I'm using Edubuntu 12.04 LTS. But I'm prepared to switch to 12.10 if the new system is easier to work with?

  5. #5
    Join Date
    Jun 2007
    Beans
    13,064

    Re: Editing Unity launcher on guest account

    Quote Originally Posted by Dacke View Post
    Thank you!

    I'm using Edubuntu 12.04 LTS. But I'm prepared to switch to 12.10 if the new system is easier to work with?
    Easier? - maybe, haven't taken a look in 12.04 to see. Really just a matter of looking around & then a little T&E..

    So in the case of 12.10 looked in synaptic for what unity package installed (nothing related), then unity-common where I saw the .xml
    (so at this point easier because it's been found, ect.

    In 12.04 it would likely be elsewhere, maybe some gconf related file??, unless it's hardcoded the file to edit can be found.

    Further note on 12.10 -
    by default any other partitions would be shown in the Default unity profile inc. guest sessions.
    To prevent that it's a bit further down the file, though it needs specific entries to work. There may be another setting somewhere that just does none, haven't looked.

    Ex. I've 3 other partitions, so removed them from the launcher in my login, went to dconf-editor to get the key value, copied it into the .xml - as seen highlighted in screen
    (orig value was []

    If you make a mistake when compiling the schema the error will be noted & the file may be completely ignored. You would be well advised to fix pronto.

    Ex. (ignore the blue, always says that
    $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas
    [sudo] password for doug:
    /usr/share/glib-2.0/schemas/com.canonical.Unity.gschema.xml: Error on line 67 char 1: 1-4:unknown keyword. This entire file has been ignored.
    No such key `computer-icon-visible' in schema `org.gnome.nautilus.desktop' as specified in override file `/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override'; ignoring override for this key.
    After fixing my error, a good compile
    $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas
    [sudo] password for doug:
    No such key `computer-icon-visible' in schema `org.gnome.nautilus.desktop' as specified in override file `/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override'; ignoring override for this key.
    doug@doug-XPS-M1330:~$
    Attached Images Attached Images

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •