LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-13-2014, 06:38 PM   #1
Phoenix_Swelter
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
KDE launchers give me .desktop files instead of launching proggies - mime issue?


Kubuntu 14.04

I was trying to find a standalone Flash player the other day, and I found a suggestion online to edit /usr/local/mime/packages/something_or_other.xml (after all my bumbling, the file no longer exists). I made a backup of the file, made the desired edit, and ran update-mime-database.

All my icons became blank icons in my System Tray, and I got mime errors every time I clicked a launcher.

So I put the original file back in place of the edited one and ran update-mime-database again. Everything was still broken.

Finally I reinstalled everything that had to do with mime. That restored my icons, and I no longer received errors when clicking launchers, but clicking a launcher starts up Kate and gives me the corresponding .desktop file to edit.

I have reinstalled kde(everything), but the launchers still won't work. I have removed the Quicklaunch widget and reinstalled it, but it is always the same. Can anyone help me?
 
Old 06-15-2014, 04:35 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
As far as I can tell, you've blown up your desktop ini files (effectively) that were generated when the applications were installed. If you wanted to clean them all up in one pass, you'd probably have to create a new user and migrate the data over to that home directory.
The good news is you could just edit the .desktop files to give yourself new functionality with the same old icons (or just provide minimal mime information and make the pop-ups go away)
http://standards.freedesktop.org/des...t/ar01s05.html

There are only three entries in the .desktop files that are mandatory and they a key/value pairs
Type: which holds and integer between 1 and 3~Application (type 1), Link (type 2) and Directory (type 3)
Name: which holds a string (i.e.application name)
URL: which holds the URL
 
Old 06-15-2014, 01:29 PM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by dijetlo View Post
As far as I can tell, you've blown up your desktop ini files (effectively) that were generated when the applications were installed. If you wanted to clean them all up in one pass, you'd probably have to create a new user and migrate the data over to that home directory.
The good news is you could just edit the .desktop files to give yourself new functionality with the same old icons (or just provide minimal mime information and make the pop-ups go away)
http://standards.freedesktop.org/des...t/ar01s05.html

There are only three entries in the .desktop files that are mandatory and they a key/value pairs
Type: which holds and integer between 1 and 3~Application (type 1), Link (type 2) and Directory (type 3)
Name: which holds a string (i.e.application name)
URL: which holds the URL
While a new user will show that there is nothing wrong with the system and create new ~./foo files ("hidden" files in /home/<user name>) it is not needed.

This is obviously the problem. There fore simply removing the affected ~./foo files and rebooting will do the same thing for the existing user. The needed removed files will be regenerated at bootup just as the needed default files will be created for a new user.

Removal of all ~./foo files will, on reboot, give the default settings for all of the install. Therefore it is a really good idea not to delete the files but simply create a new directory in the current /home/<user name> directory and move all the "hidden" files there. Something like /home/<user name>/Hidden would be an easy thing to remember what it is for.

Reboot and then you can use the /Hidden backedup files to recreate, one at a time, your settings. This is nice for things like playlists, the look and feel of applications and so forth.

I am not a KDE user so do not know what files would be the problem here. Should be associated with KDE so anyother files, for music players and so forth should not be part of the problem. There are a lot of things, however, associated with KDE, like their Office Suite that are probably not part of the problem but may be hard to judge correctly.

Therefore removing all ~./foo files may be the easiest way to go. It will give you the same results as a new user without bloating your system with another /home/user directory.

It is, I should point out, not that hard to remove a user either but sometimes it takes a bit of manual removal of associated files for the removed user. This is particularly true if the new user is created using the gui tool instead of the cli tools as is generally the case for new users created by a fairly new to Linux administrator.
 
  


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
LXer: Playing with desktop files aka application launchers in Linux LXer Syndicated Linux News 0 07-07-2013 06:50 PM
Having problems launching xmms2 in the KDE Desktop on Slackware 14.0 mariner53 Slackware 2 06-10-2013 05:22 PM
xdg-mime & svgz files issue torimus Slackware 2 05-06-2013 09:40 AM
Problem launching vmware from kde desktop or from kmenu Speedyone Linux - Newbie 13 06-26-2008 12:34 AM
problems with users launching proggies.... hollywoodb Linux - Newbie 1 10-10-2003 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:32 PM.

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