Results 1 to 9 of 9

Thread: Editing File Browser Settings

  1. #1
    Join Date
    Oct 2019
    Beans
    5

    Editing File Browser Settings

    I'm trying to turn off/remove the "Recent" and "Starred" options on the left side bar of the file browser. I right click and remove is there, but it's grayed out and I can't select it. Also, I'd like to show extra drives in that list instead of having the "Other Locations" option in the sidebar. Is there any way to do these things? I'm coming from Windows 10/Linux Mint, and both of those OSes allow this function.

    Any help is greatly appreciated.

  2. #2
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Editing File Browser Settings

    Too many choice's to guess from, include this also:
    Code:
    echo $DESKTOP_SESSION
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  3. #3
    Join Date
    Oct 2019
    Beans
    5

    Re: Editing File Browser Settings

    Quote Originally Posted by 1fallen View Post
    Too many choice's to guess from, include this also:
    Code:
    echo $DESKTOP_SESSION
    That code returns "ubuntu" in the terminal. I'm running Ubuntu 19.10, just installed it, basic/default settings/DE/etc.

  4. #4
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Editing File Browser Settings

    You Picked the hardest to play/tweak with I just won't use Nautilus period.

    Unfortunately the auto-detection of whether to show the 'Starred' panel based on whether you have any starred items was decided against. I don't know why it is shown even without Tracker being available, though.

    Note: that the sidebar is actually a single unit provided by Gtk, not an editable collection of random items – but still sufficiently customizable for this purpose.
    Please be aware I won't be held responsible for breakage as a result of following the below. (It worked a year or two ago)
    Option 1: Override the built-in UI description.
    • Create a location for the overrides:
      Code:
          mkdir ~/.config/nautilus/ui
    • Extract the resource description of the main window:
      Code:
          gresource extract /bin/nautilus \
                    /org/gnome/nautilus/ui/nautilus-window.ui \
                    > ~/.config/nautilus/ui/nautilus-window.ui
    • Edit the properties of the GtkPlacesSidebar object:
      Code:
          <object class="GtkPlacesSidebar" id="places_sidebar">
            ...
            <property name="show-recent">False</property>
            <property name="show-starred-location">False</property>
            ...
          </object>
    • Set the environment variable to make GLib use this override:
      Code:
          export G_RESOURCE_OVERLAYS="/org/gnome/nautilus/ui=$HOME/.config/nautilus/ui"
    • Due to Nautilus being started via D-Bus, you will likely need to set this via ~/.pam_environment…
      Code:
          G_RESOURCE_OVERLAYS DEFAULT="/org/gnome/nautilus/ui=/home/<yourusername>/.config/nautilus/ui"
      
          …or via ~/.config/systemd/user/dbus.service.d/environment.conf:
      
          [Service]
          Environment="G_RESOURCE_OVERLAYS=/org/gnome/nautilus/ui=/home/<yourusername>/.config/nautilus/ui"

    NOTE: You will need to change the code I just showed from "<yourusername>" to your real user name.
    Option 2: Recompile Nautilus with this patch applied:
    Code:
    diff --git a/src/nautilus-window.c b/src/nautilus-window.c
    index 0d1234f15..7a6d567f6 100644
    --- a/src/nautilus-window.c
    +++ b/src/nautilus-window.c
    @@ -1347,6 +1347,12 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
                                             | GTK_PLACES_OPEN_NEW_TAB
                                             | GTK_PLACES_OPEN_NEW_WINDOW));
    
    +    gtk_places_sidebar_set_show_recent (GTK_PLACES_SIDEBAR (window->places_sidebar),
    +                                        FALSE);
    +
    +    gtk_places_sidebar_set_show_starred_location (GTK_PLACES_SIDEBAR (window->places_sidebar),
    +                                                  FALSE);
    +
         g_signal_connect_swapped (window->places_sidebar, "open-location",
                                   G_CALLBACK (open_location_cb), window);
         g_signal_connect (window->places_sidebar, "show-error-message",
    Easy Peasy, LOL
    Last edited by 1fallen; October 27th, 2019 at 06:54 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  5. #5
    Join Date
    Oct 2019
    Beans
    5

    Re: Editing File Browser Settings

    Jesus lol. That seems like a lot to remove an option from the bookmark menu.

    Is there another file manager I can use that works? I'm not tech savvy enough to recompile things lol.

  6. #6
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Editing File Browser Settings

    Quote Originally Posted by ravrak View Post
    Jesus lol. That seems like a lot to remove an option from the bookmark menu.
    Now you know why I don't use Nautilus.
    A handful of us use Nemo.
    **WARNING**Unless you have a strong disliking of Nautilus/Files, you should not try to experiment like this with the default file manager. Changing an integral component may lead to conflicts and broken systems. If you are an advanced user who knows what’s he/she is doing, you may follow the rest of the tutorial. https://itsfoss.com/install-nemo-file-manager-ubuntu/
    Good Luck.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  7. #7
    Join Date
    Oct 2019
    Beans
    5

    Re: Editing File Browser Settings

    Quote Originally Posted by 1fallen View Post
    Now you know why I don't use Nautilus.
    A handful of us use Nemo.
    **WARNING**Unless you have a strong disliking of Nautilus/Files, you should not try to experiment like this with the default file manager. Changing an integral component may lead to conflicts and broken systems. If you are an advanced user who knows what’s he/she is doing, you may follow the rest of the tutorial. https://itsfoss.com/install-nemo-file-manager-ubuntu/
    Good Luck.
    Thanks for the help. I think I'm going to keep it simple and just move away from Ubuntu, either back to Mint or maybe on to some other distro. Hell, I still have a copy of Windows 10 floating around somewhere.

    Thanks again!

  8. #8
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Editing File Browser Settings

    Quote Originally Posted by ravrak View Post
    Thanks for the help. I think I'm going to keep it simple and just move away from Ubuntu, either back to Mint or maybe on to some other distro. Hell, I still have a copy of Windows 10 floating around somewhere.

    Thanks again!
    You can just install "nemo" and just use it, without making it default.
    And there are many flavors of Ubuntu to pick from.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  9. #9
    Join Date
    Oct 2019
    Beans
    5

    Re: Editing File Browser Settings

    Quote Originally Posted by 1fallen View Post
    You can just install "nemo" and just use it, without making it default.
    And there are many flavors of Ubuntu to pick from.
    I could, but the more I played with Ubuntu the more quirky, head-scratching things I found. And since I tried MATE and then moved back to Gnome, a lot of stuff is broken (it warned me before I switched, so fair's fair.) Like, Super+L doesn't lock my screen anymore, the login screen is still MATE even though I'm back to Gnome, my screen no longer times out at 10 minutes like it was supposed to. On and on.

    If Ubuntu is feature-lacking out of the box, and then breaks when I try to work around that lack of features...it just doesn't feel finished to me. I was going to just sell the desktop and work on my iPad, but I've downloaded Linux Mint again and I think I'll give that a whirl one more time. It, at least, worked out of the box.

    I dunno. I guess I want more customization than Ubuntu allows. And more stability.

    Anyway, thanks again for the help. I really do appreciate it.

    ETA: Turns out Ubuntu also broke my 1TB media drive, so now I have to reformat it and move the 700GB of media I had on it back. Thank God I back everything up in triplicate or all that data would be lost, compliments of Ubuntu. :/
    Last edited by ravrak; October 28th, 2019 at 02:59 PM.

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
  •