Hello.
I wonder if there is a way to change process name for my gtkdialog apps?
i mean when i write an app using gtkdialog, and when i run this app, the process name is always "gtkdialog", can i change this??
thanks.
change process name in gtkdialog
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Use 'title' tag attribute to <window> tag. e.g.
For other uses http://code.google.com/p/gtkdialog/ can be helpful.
Code: Select all
<window title="some other title">
...
</window>
-
- Posts: 17
- Joined: Sun 14 Apr 2013, 10:34
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
There are two ways of doing it.
1. Start gtkdialog asynchronously and record its process id. Later kill it with its process id like:
2. Symlink the gtkdialog executable and give it another name.
1. Start gtkdialog asynchronously and record its process id. Later kill it with its process id like:
Code: Select all
gtkdialog -p EXAMPLE & #<< Note the '&' at the end
pidof_dialog="$!" #To record process ID into pidof_dialog
wait "$pidof_dialog" #To suspend execution till gtkdialog ends, optional
...
#later
kill "$pidof_dialog"
Code: Select all
ln -sT "`which gtkdialog`" /tmp/my_gtkdialog
/tmp/my_gtkdialog -p EXAMPLE
...
#later
killall my_gtkdialog