diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 22:44:31 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 22:44:31 +0100 |
commit | 9b0c3d8a1b5e74e9499175e8ddc6a306c7333455 (patch) | |
tree | 141297d815050ad1a085455712ee4d25f3ac3b41 /src/Applet | |
parent | 58988f7f1ac7e5ac5f65b82c3a182cffa58e5433 (diff) | |
download | abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.gz abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.xz abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.zip |
More rpm fixes
Diffstat (limited to 'src/Applet')
-rw-r--r-- | src/Applet/CCApplet.cpp | 13 |
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: |