LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2009, 01:26 AM   #1
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Rep: Reputation: 37
cannot change the default program


Hello friends,

I have Mandriva 10 installed in my pc. Now the problem is that I can't change the default program for a specific type of file.

Let me explain it to you.

The default program for an mp3 file is amarok. I, but want to change the default program to vlc. So I did the following task-

right click on any mp3 file > properties > settings > change the default program as you like.

but whenever I click to the apply button it says

Code:
Configuration file "/home/lemon/.local/share/applications/mimeapps.list" not writable.
Please contact your system administrator.
So can you please help me to change the default program.
 
Old 12-21-2009, 02:39 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What is the output from
Code:
f=/home/lemon/.local/share/applications/mimeapps.list
while [[ "$f" != '' ]]; do ls -ld "$f"; f="${f%/*}"; done
 
Old 12-21-2009, 03:51 AM   #3
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285

Original Poster
Blog Entries: 1

Rep: Reputation: 37
well here is the output:

Code:
[lemon@localhost ~]$ f=/home/lemon/.local/share/applications/mimeapps.list
[lemon@localhost ~]$ while [[ "$f" != '' ]]; do ls -ld "$f"; f="${f%/*}"; done
-rw-r--r-- 1 root root 227 2009-12-21 11:37 /home/lemon/.local/share/applications/mimeapps.list
drwxr-xr-x 2 root root 4096 2009-12-21 11:45 /home/lemon/.local/share/applications/
drwxrwxr-x 9 lemon lemon 4096 2009-12-20 23:32 /home/lemon/.local/share/
drwxrwxr-x 3 lemon lemon 4096 2009-12-19 13:21 /home/lemon/.local/
drwxr-xr-x 35 lemon lemon 4096 2009-12-21 14:45 /home/lemon/
drwxr-xr-x 5 root root 4096 2009-12-19 13:20 /home/
[lemon@localhost ~]$
 
Old 12-21-2009, 04:04 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by lemon09 View Post
well here is the output:

Code:
[lemon@localhost ~]$ f=/home/lemon/.local/share/applications/mimeapps.list
[lemon@localhost ~]$ while [[ "$f" != '' ]]; do ls -ld "$f"; f="${f%/*}"; done
-rw-r--r-- 1 root root 227 2009-12-21 11:37 /home/lemon/.local/share/applications/mimeapps.list
drwxr-xr-x 2 root root 4096 2009-12-21 11:45 /home/lemon/.local/share/applications/
drwxrwxr-x 9 lemon lemon 4096 2009-12-20 23:32 /home/lemon/.local/share/
drwxrwxr-x 3 lemon lemon 4096 2009-12-19 13:21 /home/lemon/.local/
drwxr-xr-x 35 lemon lemon 4096 2009-12-21 14:45 /home/lemon/
drwxr-xr-x 5 root root 4096 2009-12-19 13:20 /home/
[lemon@localhost ~]$
Thanks. That shows the problem. Weird it got that way -- any ideas? Any other files-and-directories under /home/lemon/.local/share/ that are owner and group root?

To fix the immediate problem run these commands as root
Code:
cd /home/lemon/.local/share
chmod 755 applications
chown lemon:lemon applications
cd applications
chmod 644 mimeapps.list
chown lemon:lemon mimeapps.list
 
Old 12-22-2009, 12:28 AM   #5
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285

Original Poster
Blog Entries: 1

Rep: Reputation: 37
Thanks Catkin, the problem is fixed..........
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What config file do you change to change default run level McPriMa Linux - Newbie 2 08-05-2009 04:45 PM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
Need to change default ftp program Cherith Red Hat 2 01-15-2008 10:34 AM
How can you change the default setting for the "Run Command" program? whited Linux - General 6 02-28-2005 11:34 PM
How to change default wm nacha Debian 1 06-10-2004 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration