Results 1 to 4 of 4

Thread: How Do I Change Nautilus Sort Order?

  1. #1
    rambutan Guest

    Default

    When Nautilus opens for user me I get the folders like this
    bin - boot - Data - dev
    When I open Nautilus as root I get the folders like this:
    Data - bin - boot - dev
    I want them both to sort in alpha (ignore case) rather than pure ascii in root

    First stop was configuration-editor.
    search for any thing with "sort" - lots of hits but none solve it.

    Next stop Read The Free Manual.
    http://library.gnome.org/admin/syste...-guide/stable/
    I learned about path, defaults, mandatory, repositories all over the place.
    IF you know the name of the field to change the manual shows you how.

    Next stop experiment on a sand-box copy of SuSE.
    Manual said don't edit these with users logged in.
    I renamed 6 configuration files /root/.gconf(2), /root/.gnome(3) and /root/.nautilus.
    Then I copied over /home/me/.g(5 files) and /home/me/.nautilus into /root/
    Then I chown -R the new files.
    Boot into the modified SuSE
    Still root's Nautilus sorts in ascii.

    Anyone know where this elusive setting is kept?


  2. #2
    eberhard Guest

    Default

    Sorting is governed by the $LANG environment variable. As default $LANG for root is C, whereas for your normal user it might be en_EN.utf-8 . This means, for root sorting is done by ascii values and there big letters come first, while the sorting for natural languages is done alphabetically like in a dictionary. You can change this behavior for root with yast->system->/etc/sysconfig editor->System->Environment->Language->ROOT_USES_LANG from the value 'ctype' to e.g. 'en_EN.utf-8'.

    Btw, you shouldn't run a program from a gui, like nautilus as root. Too dangerous.

  3. #3
    rambutan Guest

    Default

    Thanks eberhard,

    I'm still chasing it though.
    I did as you said but the sort stayed the same way.
    So I tired en_US.UTF-8
    The sort stays the same.
    In the terminal I can
    $ echo $LANG
    and get en_US.UTF-8
    # echo $LANG
    and I get POSIX
    I cannot export a value it will take.
    I tried like # export $LANG="en_US.UTF-8"
    but still echo $LANG is POSIX
    Is there a file in /etc I can use gedit to set this?

    Using Nautilus as Root... I don't log in as root, I use $ su - ; # nautilus
    Are you saying that's risky too? Risk of my errors or security risk?

  4. #4
    rambutan Guest

    Default

    I got it!
    # gedit /etc/sysconfig/language
    add the line
    ROOT_USES_LANG="yes"

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.5.2