<div dir="ltr">Here's another way:<div><div> </div><div>Launch the software. </div><div><br></div><div>Then from a terminal, run `COLUMNS=150 ps -ef > ~/Desktop/out.txt`. </div><div><br></div><div>Examine the last few lines of `out.txt` for the relevant command (which very often is the name of the package as well).</div>
</div><div><br></div><div class="gmail_extra">*******************************</div><div class="gmail_extra">But sometimes, package names or executable names and the names in menus don't match. For example, Evince may show up as Document Viewer and gedit may appear as Text Editor.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I'm not good at this stuff but with a little help from people at Ubuntu Forums***, I've settled on this (inelegant) code:</div><div class="gmail_extra"><br>
</div><div class="gmail_extra">grep '^Name=' /usr/share/applications/*.desktop > ~/Desktop/mgtl1.txt && grep -h '^Exec=' /usr/share/applications/*.desktop > ~/Desktop/mgtl2.txt && paste -d':' ~/Desktop/mgtl1.txt ~/Desktop/mgtl2.txt > ~/Desktop/mgtl3.txt && perl -p -i -e 's/\/usr\/share\/applications\///'g ~/Desktop/mgtl3.txt && perl -p -i.bak -e 's/\n/\n\n/'g ~/Desktop/mgtl3.txt && perl -p -i.bak -e 's/:/\n/'g ~/Desktop/mgtl3.txt </div>
<div class="gmail_extra"><br></div><div class="gmail_extra">It will create four files on the desktop and in **mgtl3.txt**:<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">The first line is what you'll see by looking at "ls /usr/share/applications" (which is **not** what you'll see if you look at /usr/share/applications using a File Manager).<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">The second line is what you'll see with the File Manager **and** is probably the name in various menus.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
The third is the path to the executable.</div><div class="gmail_extra"><br></div><div class="gmail_extra"> </div><div class="gmail_extra">apport-gtk-mime.desktop </div><div class="gmail_extra">Name=Report a problem... </div>
<div class="gmail_extra">Exec=/usr/share/apport/apport-gtk -c %f</div><div class="gmail_extra"><br></div><div class="gmail_extra">audacity.desktop </div><div class="gmail_extra">Name=Audacity </div><div class="gmail_extra">
Exec=audacity %F</div><div class="gmail_extra"><br></div><div class="gmail_extra">blueman-manager.desktop </div><div class="gmail_extra">Name=Bluetooth Manager </div><div class="gmail_extra">Exec=blueman-manager</div><div class="gmail_extra">
<br></div><div class="gmail_extra"> ***</div><div class="gmail_extra"><a href="http://ubuntuforums.org/showthread.php?t=2067629&p=12282576#post12282576">http://ubuntuforums.org/showthread.php?t=2067629&p=12282576#post12282576</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>