i'm trying to make a custom launcher in 11.10 for the special force quit launcher we had in 11.04 (you could add it from the list of apps,but now it is nowhere to be found ,even in alacarte ..) .. so i try using infos from here but i have no idea what the actual file or command is for force quit nor where it is in the filesystem..
this question is real specific to force quit itself and is not about asking how to create a launcher ..
i will create a file called forcequit.desktop and put it in ~/.local/share/applications folder and will then drag it unto the toolbar like it is told elsewhere.
the content of the file will look like this:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=sh -c 'notify-send "Click on an application to force-close it, or press Esc to cancel."; xkill' Name=Force Quit Comment=Click on the app to quit with your pointer Icon=gnome-panel-force-quit Categories=System,Accessories;
i suppose it might be a special command that takes an argument,again if you have the info please do tell :)
i wrote comments in the file about the infos i need..
edit: ok now it works with showing a special X icon and does force quit properly.. now i just need to find out how to get instructions to appear for an end user,just like it does when using from CLI.. i'd suppose it displays the launcher's comment on screen somewhere ? any ideas or links ? or maybe i need to add something to this launcher file ?
last edit: well the solution from the above edit has been found ,it is the usage of notify send that does the trick ..like it is now reflected in the code .. enjoy the solution for your desktop (or for end users you support !)
lastest edit: all this talk makes me want to go look for notify-send options a little more..and well in a greater scale at all the other commands i can use.....notify-send is part of gnome is it ? or is it part of sh ?(i doubt it's from sh)
edit to the lastest edit : nevermind that.. i found an answer to that as well.. notify-send is part of the libnotify library package..and notify-send is in the tools folder (i had trouble finding it at first..) and no it isnt specifically part of gnome,but rather another library used by many apps :)