Is there a way to get scrot to capture the mouse cursor?
Augustine Souza
aesouza2008 at gmail.com
Wed Jul 17 03:31:45 UTC 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20130717/cae0fc69/attachment-0001.html>
More information about the Lubuntu-users
mailing list