LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2006, 12:46 PM   #1
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Rep: Reputation: 15
Unhappy /usr/share/applications


oh guys, do i did something dumb. i was copying a *.desktop file to /usr/share/applications/, but instread copied it to /usr/share/application. I dont know what used to be in this file or how important it is. Could someone please tell me how to restore it ??

Thanks
 
Old 02-18-2006, 02:14 PM   #2
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
So, if you did exactly what you typed, you copied a .desktop file to the FILE /usr/share/application, right? If this is true, copy /usr/share/application back to /usr/share/applications/whatever.desktop and you should be OK. This is provided you remember the name of the original .desktop file. You do remember the filename, right?!
 
Old 02-18-2006, 02:33 PM   #3
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Hmm... I think what has happened is that all the *.desktop files are copied to one single file /usr/share/application. I don't think there actually was a file called application in /usr/share before the copying, so probably you don't have to worry about it. I could be wrong though... If you only copied the files, then you have the original .desktop files still. No damage done.

Last edited by alienDog; 02-18-2006 at 02:34 PM.
 
Old 02-18-2006, 03:28 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
On my machine (Ubuntu), /usr/share has only directories. If yours is similar, then you may have simply created the file named "application". Read it and see if it looks familiar.
 
1 members found this post helpful.
Old 02-20-2006, 03:14 AM   #5
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Original Poster
Rep: Reputation: 15
yeah you guys are right. I did just create a file called application. thanks anyway though;
 
Old 02-20-2006, 07:08 AM   #6
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
When you copy, you are literally creating a file. Spelling and capitalization are critical in GNU/Linux, as you have found out! One thing to remember which kind of throws new GNU/Linux users for a loop is in GNU/Linux, and Unix, "everything is a file". This is a totally alien concept in Windows, so takes a bit to get used to. Glad you figured out the issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Delete /usr/share directory? t3___ Linux - Newbie 4 03-09-2005 07:54 PM
deleted /usr/share jmoschetti45 Linux - General 1 11-20-2004 04:02 PM
/usr/share - What's the point? Makaelin Slackware 5 09-02-2004 06:05 PM
migrating /usr/share to another hd comatosebuddha Linux - General 3 08-26-2003 03:10 PM
/usr/share/locale chrismiceli Linux - General 1 08-09-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 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