summaryrefslogtreecommitdiffstats
path: root/src/Applet/CCApplet.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-25 22:44:31 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-25 22:44:31 +0100
commit9b0c3d8a1b5e74e9499175e8ddc6a306c7333455 (patch)
tree141297d815050ad1a085455712ee4d25f3ac3b41 /src/Applet/CCApplet.cpp
parent58988f7f1ac7e5ac5f65b82c3a182cffa58e5433 (diff)
downloadabrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.gz
abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.xz
abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.zip
More rpm fixes
Diffstat (limited to 'src/Applet/CCApplet.cpp')
-rw-r--r--src/Applet/CCApplet.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp
index 6f72bf51..d26e25b2 100644
--- a/src/Applet/CCApplet.cpp
+++ b/src/Applet/CCApplet.cpp
@@ -90,7 +90,6 @@ void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data)
{
CApplet *applet = (CApplet *)user_data;
//FIXME
- char cwd[1024];
//gtk_status_icon_set_visible(applet->m_pStatusIcon,false);
GtkWidget *dialog = NULL;
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
@@ -102,17 +101,7 @@ void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data)
{
case GTK_RESPONSE_YES:
//FIXME - use fork+exec and absolute paths?
- getcwd(cwd,1024);
- if(chdir("../bin") != -1){
- popen("./cc-gui","r");
- if(chdir(cwd) == -1)
- {
- std::cerr << "error changing the directory" << std::endl;
- }
- }
- else{
- std::cerr << "error changing the directory" << std::endl;
- }
+ popen("/usr/bin/cc-gui","r");
gtk_status_icon_set_visible(applet->m_pStatusIcon,false);
break;
default: