Find the answer to your Linux question:
Results 1 to 6 of 6
I'm attempting to edit this document but when I open it up with the root account nothing appears there. I have to open it with alt f2 gedit /user/share/icon/default/indext.theme to ...
  1. #1
    Linux Newbie theKbStockpiler's Avatar
    Join Date
    Sep 2010
    Location
    Upstate NY
    Posts
    195

    How do I edit /user/share/icon/default/icon/indext.theme document?



    I'm attempting to edit this document but when I open it up with the root account nothing appears there. I have to open it with alt f2 gedit /user/share/icon/default/indext.theme to view it in non root. I am reading from this page here.How To Change The Mouse Cursor Theme In Ubuntu With Compiz Enabled [Ubuntu 10.04 Lucid Lynx Or Newer] ~ Web Upd8: Ubuntu / Linux blog

    Thanks in advance!

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Well, as you wrote it in this post, it's wrong.

    Should be
    Code:
    gksudo gedit /usr/share/icons/default/index.theme
    Not /user and not indext.theme. Double check you have no typos when you're trying to enter it.

    You can also set the cursor theme locally for just your user.
    Code:
    mkdir -p ~/.icons/default
    echo "[Icon Theme]
    Inherits=MyTheme" >> ~/.icons/default/index.theme

  3. #3
    Linux Newbie theKbStockpiler's Avatar
    Join Date
    Sep 2010
    Location
    Upstate NY
    Posts
    195

    My code is like the junkpile in my avitar

    Thanks for the great reply. I was wondering why I can't open this thing which is not a file any other way and have the info it contains viewable? Why can I view it blank in root but not see the info it contains? It does work with just (sudo gedit /usr/share/icons/default/index.theme.) I can view the contents of the "thing" and it is writabe. What kind of document is "indext.theme?

    Thanks for your expertise and attention!

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I was wondering why I can't open this thing which is not a file any other way and have the info it contains viewable?
    It is a file, first. I'm not clear on what you're describing. If the file exists and is not empty, you should be able to read it as root or as your user. You're saying if you open it as your user, it contains information, but if you open it as root, all you see is a blank file?

    index.theme is just a text file, nothing more. The cursor management library, xcursor, looks in /usr/share/icons and ~/.icons for said file. You're telling it to inherit the cursor theme you want, so if falls back to the theme rather than the default ugly x windows cursor icon.

  5. #5
    Linux Newbie theKbStockpiler's Avatar
    Join Date
    Sep 2010
    Location
    Upstate NY
    Posts
    195

    My mistake.Thanks for the reply.

    I accidentally use (user)instead of( usr) and a file is opened anyways.

    I will study the sudo command now.

    Thanks again for setting me straight.

  6. #6
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    You can pass any path you want, whether it exists or not, to gedit, and if the file doesn't exist then gedit will create it. If you pass a bogus file path, then you will of course see a blank file, because gedit just created the blank file for you, thinking you really wanted to edit that file. Any typo at all in the path will usually give you a blank file. If all else fails, use Nautilus to navigate to the file, right-click on it and select Open as Administrator.

Posting Permissions

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