I have followed the instructions in many answers like  to create a proper launcher for everyone's very favorite user friendly IDE installed from tar (otherwise I would get a very old version from USC). A few hours later I still can't make it run.  I installed eclipse on ~/opt/eclipse/, (in order to run it today I open a terminal and type opt/eclipse/eclipse) so I filled out the Exec field as Exec=$HOME/opt/eclipse/eclipse. This might be error 1, what should I put there instead?  In the Icon field, I wrote the path to the eclipse icon in the same folder: $HOME/opt/eclipse/icon.xpm. What should I replace this with?  was my reference for using the $HOME variable. From memory, the following steps were taken:   cd /usr/share/applications/ sudo touch eclipse.desktop sudoedit eclipse.desktop (heads up: only sudoedit can write on that file)  [Desktop Entry] Name=Eclipse Type=Application Exec=$HOME/opt/eclipse/eclipse Comment=Launches eclipse IDE Icon=$HOME/opt/eclipse/icon.xpm  ls -l eclipse.desktop  -rw-r--r-- 1 root root   139 Jul  5 21:41 eclipse.desktop   And now when I type eclipse on the Dash, all I get is a shortcut to eclipse's icon.xpm. Is there an error in my .desktop file, provided eclipse is in ~opt/eclipse/eclipse? Is it necessary to copy the eclipse icon to /usr/share/pixmaps? Thanks in advance.
21348
Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs.  For some programs I use, I have to make custom launchers or .desktop files.  For instance, daily blender builds are generally just folders with an executable.  In basic Gnome or KDE, I can make a new menu entry with the menu editing system. Then, I can also add it to Docky either from the menu or by dragging a .desktop file to it. Unity launcher doesn't support drag and drop, so thats not a bug or anything, but when I open a .desktop file, it has unpredictable results. Most time it will not have "keep in launcher". Sometime it will have a pinnable item without the .desktop's icon, and if I pin the item to the launcher, it will not call upon the program again after closing it. I've also gotten it to just work with a .desktop file for celtx.
13593
Possible Duplicate:             I want to add some shell scripts in my launcher as shortcuts..  They are located deep inside and i have to navigate to it every time to execute them...  I tried  link where the 2nd answers seems to solvee it but as said in comments neither can i find any option to add a launcher..  I guess it existed in 11.04 with a "+" button on launcher but i use 12.04.  So how do i get this working?? And i need those commands everytime for sure..!
31353
How do I create a resource that I can reference and use in various parts of my program easily?  My specific problem is that I have a NotifyIcon that I want to change the icon of depending on the state of the program. A common problem, but one I've been struggling with for a long time.
47690
This is the situation:     Working on (the next version of) a Unity Quick List editor, I would like to add a reliable way of "restarting" launcher icons. To do so, I need to remove the icon (editing gsettings) and replace it on the same position. So far no problem. However, if the application in question is running, user will possibly lose data, as the application will quit when it's icon is removed from the launcher. What I need is a reliable way to find an application's process name, to let the editor check in the list of running processes if the application is running, and send a warning message to the user that the icon can not be restarted if the application is running.  What I did so far is make the editor look into the desktop file, to read the command, also read the command, stripped from the directory section, and furthermore look into possible remote scripts the desktop file command might refer to, looking for strings starting with "./"  Although the method seems to work well with all applications I tested it on, I have the feeling there must be an easier way to cover the problem in an "all in one" way...  Is there?  Also suggestions to catch more exceptional situations are welcome!
56978
I am displaying a list of files; i.e. xls, doc, pdf, odt etc., in my Java application (Eclipse RCP). When the user clicks on the file, I want to launch the appropriate  (according to what the OS thinks) native application, just like it happens in Windows Explorer or the Finder.  And while I am here: It would be nice to also display the same icons that Finder or Explorer use for the different file types.  Is there a library or Eclipse plugin for this?
30192
I've downloaded a tar.gz for the game Solar 2, and extracted it. Frustratingly, there is no configure file for it, nor is there an INSTALL or a README file. If I skip straight to the "make" command, it tells me there's no targets specified and no makefile found. I'm also having the same problem with another game I've downloaded, NightSky.  Not quite sure how to proceed. I can't find any official documentation or anyone else having these problems. Any suggestions?
5306
Is there any way to find out what process created a given icon in the system tray? A new icon has appeared that I don't recognize and I would like to find out what process spawned it.
41843
Problem  I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows   sudo apt-get install openjdk-6-jdk Added the following entries to ~/.bash_profile  export JAVA_HOME=/usr/lib/jvm/java-6-openjdk  export PATH=$PATH:$JAVA_HOME/bin  Save the changes and exit Open up a terminal again and typed the following  echo $JAVA_HOME   (blank) echo $PATH        (displayed, but not the JAVA_HOME value)  Nothing happened, like if the export of JAVA_HOME and it's addition to the PATH were never done.   Solution  I had to go to ~/.bashrc and add the following entry towards the end of file  #Source bash_profile to set JAVA_HOME and add it to the PATH because for some reason is not being picked up . ~/.bash_profile   Questions   Why did I have to do that? I thought bash_profile, bash_login or profile in absence of those two get executed first before bashrc.  Was in this case my terminal a non-login shell? If so, why when doing su after the terminal and putting the password it did not execute profile where I had also set the exports mentioned above?
58797
From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.   If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.   If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.  That's my question, how can I run a foo.desktop file from the terminal?
29329
I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.  I can change the theme but that's not what I want.   I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.
75340
I started by searching guides. I found  but neither of the main methods works anymore in 11.10.   The first solution, I have created the desktop file, however the file location given as .gconf-&gt; desktop-&gt; unity-&gt; launcher -&gt; favourites no longer exists. I can get to /home/sayth/.gconf/desktop but there is no longer a unity folder. The second solution described right-clicking the desktop and creating a launcher. Right-clicking the desktop no longer produces a "create a launcher" option.   I manually installed geany 0.21 as the one in the repo's is outdated. It's installed and working correctly, and is executing from /usr/local/bin/geany.  How can I add it to the launcher?
51251
I can't open Eclipse from Dash Home although it shows its icon. Eclipse was properly installed using apt-get.  When I launch Eclipse from Dash Home it doesn't open. It opens only through Terminal. How can I open it from the dash?
38236
Wouldn't it be nice to just do a keystroke and have eclipse organize all imports in all java classes instead of just the one you are looking at? Is this possible? Is there a keystroke for it?
52065
I've been trying to install Android developer tools on Eclipse, and I followed the information in .  Like the video said, I added the following two lines of code to the .bashrc file:  export PATH=$(PATH):-/android-sdk/tools/ export PATH=$(PATH):-/android-sdk/platform-tools/   It seems, however, that this did not help me to install the Android files on Eclipse, as I am still having problems with that. What's more, it seems that I can't make any command in the terminal without getting a major error now! Every time I try to make a command in the terminal I get the following message:     The command could not be located because '/usr/bin' is not included in   the PATH environment variable.   Is there away to restore .bashrc to its default?
56766
To clean install Eclipse for C/C++ on Ubuntu 18.04 I tried sudo apt install eclipse eclipse-cdt. It's showing an error, see the log file....  log file..... !SESSION Fri Aug 16 14:39:20 IST 2019 ------------------------------------------ !ENTRY org.eclipse.equinox.launcher 4 0 2019-08-16 14:39:20.065 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)     at org.eclipse.equinox.launcher.Main.run(Main.java:1438)     at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
88572
Apps launched via Finder seem to not respect the PATH as set in .bash_profile.  So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is normally added to my path in the Terminal.  Apparently .MacOSX/environment.plist  to do this, but it no longer works in Lion.  How can I set the PATH for Finder-launched applications?
22722
This a specification of my previous question () where I wondered how to create a .desktop file in order to create an icon on the launcher for a Wine application.  I don't understand what do we have to do with the following code:   [Desktop Entry] Name=FooBar Comment=Foo &amp; Bar Exec=sh -c "cd /home/USER/.wine/drive_c/Program\ Files/FOOBAR_FOLDER; wine foobar.exe" Icon=wine Terminal=false Type=Application Categories=Wine; StartupNotify=true       Replace USER and FOOBAR_FOLDER with appropriate values. So you'll be   able to locate your application in the Launcher by typing "FooBar".   This is the top answer given to a question similar to my previous one, which you can see here: , but I don't understand how shall I handle the code I just provided. I tried to copy and paste on the terminal, but it wouldn't work.  In other words, I need that same answer but more comprehensively explained and easier to understand since I don't get what to do with the code provided! Please note, I have few skills with computers. Thank you very much! :)