openbsd-ports/x11/pcmanfm/patches/patch-src_app-chooser-dialog_c
ajacoutot dfed0c109d - update to pcmanfm-0.3.5.7
Interesting changelog entries:
* underlying mime-type system was rewritten from scratch
* memory usage was reduced
* FAM-related bugs were fixed
* UI was slightly improved
2008-02-04 09:29:22 +00:00

22 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_app-chooser-dialog_c,v 1.1 2008/02/04 09:29:22 ajacoutot Exp $
--- src/app-chooser-dialog.c.orig Fri Feb 1 06:07:16 2008
+++ src/app-chooser-dialog.c Sun Feb 3 21:40:07 2008
@@ -263,7 +263,7 @@ on_browse_btn_clicked ( GtkButton *button,
char * filename;
char* app_name;
GtkEntry* entry;
- const char* app_path = "/usr/share/applications";
+ const char* app_path = "!!LOCALBASE!!/share/applications";
GtkWidget* parent = GTK_WIDGET( button );
GtkWidget* dlg = gtk_file_chooser_dialog_new( NULL, GTK_WINDOW( parent ),
@@ -274,7 +274,7 @@ on_browse_btn_clicked ( GtkButton *button,
GTK_RESPONSE_CANCEL,
NULL );
gtk_file_chooser_set_current_folder ( GTK_FILE_CHOOSER ( dlg ),
- "/usr/bin" );
+ "!!LOCALBASE!!/bin" );
if ( gtk_dialog_run( GTK_DIALOG( dlg ) ) == GTK_RESPONSE_OK )
{
filename = gtk_file_chooser_get_filename ( GTK_FILE_CHOOSER ( dlg ) );