Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Kubuntu file associations not changing

  • 30-04-2012 1:23am
    #1
    Registered Users, Registered Users 2 Posts: 495 ✭✭


    Pretty much exactly what it says on the subject line
    I'm running kubuntu, just upgraded to Precise hoping it would resolve the issue I've been having with file associations
    Whenever I change the default application for a filetype (e.g. geany for text files instead of kate) the change is not made permanent, either through file associations in the system settings or the right click -> open with -> Remember application association for this type of file

    Any ideas on what I could do to resolve this?


Comments

  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    ls -l ~/.local/share/applications/
    
    and post the result here.


  • Registered Users, Registered Users 2 Posts: 495 ✭✭tetsujin1979


    me@mylaptop:~/$ ls -l ~/.local/share/applications/
    total 4
    -rwxrwxrwx 1 root root 159 Dec 24 20:32 mimeapps.list


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    OK, next step:
    whoami
    
    (post here)

    That's how it should look like:
    -rw-r--r-- 1 user_name users 1808 mar 23 22:28 mimeapps.list
    

    So let's say your user name is "steven" (the result of "whoami"):
    sudo chown steven:users path-to-file-mimeapps.list-here
    

    will fix the owner:group problem and:
    chmod 644 path-to-file-mimeapps.list-here
    
    should fix the permissions.

    If you don't understand what's going on here google or ask! The first result you posted suggest that someone run something that shouldn't ever be executed like setting permissions 777 to all files.

    http://en.wikipedia.org/wiki/Filesystem_permissions


  • Registered Users, Registered Users 2 Posts: 495 ✭✭tetsujin1979


    ok, done
    me@mylaptop:~/$ whoami
    me
    


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    OK, replace"steven" with "me"


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 495 ✭✭tetsujin1979


    did all that and changed the permissions successfully, but the file associations are still not being persisted.
    I get an "updating system configuration" message for about a second and then try opening with the new default application and it's back to the previous one

    if it makes an difference, when I try to remove an application from the list, it tells me I am not authorized to remove the service


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    OK, what about:
    ls -lR ~/.local/share
    
    I'm trying to get an idea what ownership/permission you have for files in your home dir.

    You can try something like that:
    sudo chown -R me:users /home/me/
    
    It should change the owner your home directory and all sub-directories and files to you.


    http://linux.die.net/man/1/chown


  • Registered Users, Registered Users 2 Posts: 495 ✭✭tetsujin1979


    PrzemoF wrote: »
    OK, what about:
    ls -lR ~/.local/share
    
    I'm trying to get an idea what ownership/permission you have for files in your home dir.

    You can try something like that:
    sudo chown -R me:users /home/me/
    
    It should change the owner your home directory and all sub-directories and files to you.


    http://linux.die.net/man/1/chown

    the chown command did the job, thanks so much


Advertisement