On Wed, Jul 17, 2013 at 7:31 AM, Augustine Souza <[email protected]>wrote:
> Here's another way: > > Launch the software. > > Then from a terminal, run `COLUMNS=150 ps -ef > ~/Desktop/out.txt`. > > Examine the last few lines of `out.txt` for the relevant command (which > very often is the name of the package as well). > > ******************************* > 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. > > I'm not good at this stuff but with a little help from people at Ubuntu > Forums***, I've settled on this (inelegant) code: > > 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 > > It will create four files on the desktop and in **mgtl3.txt**: > > 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). > > The second line is what you'll see with the File Manager **and** is > probably the name in various menus. > > The third is the path to the executable. > > > apport-gtk-mime.desktop > Name=Report a problem... > Exec=/usr/share/apport/apport-gtk -c %f > > audacity.desktop > Name=Audacity > Exec=audacity %F > > blueman-manager.desktop > Name=Bluetooth Manager > Exec=blueman-manager > > *** > http://ubuntuforums.org/showthread.php?t=2067629&p=12282576#post12282576 > > > O_o If this is a 'way' to find out the name of a package, I would MOVE right not to Windows and never come back to Linux :P :P :P Just kidding ;) But really, this is way too long if you ask me - no offense :) Menu > System > Synaptic and Just type the name of the application as it appears on the Menu and you are done :) If it is installed, a green box will be shown next to the name. If it is not installed, the check box will be blank. Easy as pie :) -- "All of us are smarter than any one of us." *Best Regards,* *amjjawad <https://wiki.ubuntu.com/amjjawad/>* *Start Ubuntu<https://wiki.ubuntu.com/Lubuntu/CommunicationsTeam/WOWLubuntu/StartUbuntu> * *My Own Business <http://alilinx.blogspot.com/>*
-- Lubuntu-users mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
