Commit 378823d2 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

2006-11-23  Alexander Larsson  <alexl@redhat.com>

	* Commit federicos debug logging patch:
parent 0965e0f9
2006-11-23 Alexander Larsson <alexl@redhat.com>
* Commit federicos debug logging patch:
2006-10-23 Federico Mena Quintero <federico@novell.com>
* libnautilus-private/nautilus-debug-log.h
(NAUTILUS_DEBUG_LOG_DOMAIN_GLOG): New domain for GLog messages.
We'll spit the messages that come from GLog as milestone events.
* src/nautilus-main.c (setup_debug_log): New function; set up
everything here.
(setup_debug_log_glog): New function. Override the default
handler for GLog so that its messages will also appear as
milestone events in our own debug log.
2006-10-16 Federico Mena Quintero <federico@novell.com>
* src/file-manager/fm-directory-view.c (files_added_callback): Log
when files are added to the view.
(files_changed_callback): Log when files get changed in the view.
(fm_directory_view_notify_selection_changed): Log when the
selection changes.
* src/nautilus-main.c (setup_debug_log_domains): Add
NAUTILUS_DEBUG_LOG_DOMAIN_ASYNC to the list of enabled log domains.
* libnautilus-private/nautilus-debug-log.h: New prototype for
nautilus_debug_log_with_file_list().
* libnautilus-private/nautilus-debug-log.c
(nautilus_debug_log_with_file_list): New function; takes a GList
of NautilusFile.
2006-10-03 Federico Mena Quintero <federico@novell.com>
* libnautilus-private/nautilus-debug-log.c (nautilus_debug_logv):
Deal with URI lists optionally.
(nautilus_debug_log_with_uri_list): New function.
* libnautilus-private/nautilus-icon-dnd.c
(receive_dropped_color): Log when a color is dropped.
(receive_dropped_tile_image): Log when a tile image is dropped.
* libnautilus-private/nautilus-icon-container.c
(motion_notify_event): Log when a drag begins.
(button_release_event): Log when a drag ends.
* libnautilus-private/nautilus-file-operations.c
(nautilus_file_operations_copy_move): Log move/copy/link actions.
(nautilus_file_operations_new_folder): Log when a folder is created.
(nautilus_file_operations_new_file_from_template): Log when a file
is created from a template.
(nautilus_file_operations_new_file): Log when a file is created.
(nautilus_file_operations_delete): Log when files are deleted.
(do_empty_trash): Log when the trash is emptied.
2006-09-22 Federico Mena Quintero <federico@novell.com>
* libnautilus-private/nautilus-debug-log.[ch]: New files with a
simple logging infrastructure based on a ring buffer.
* libnautilus-private/Makefile.am
(libnautilus_private_la_SOURCES): Added nautilus-debug-log.[ch].
* src/nautilus-main.c (main): Make SIGUSR1 dump the debug log to
~/nautilus-debug-log.txt.
* src/file-manager/fm-directory-view.c
(fm_directory_view_activate_files): Log the action of activating a
file.
(open_location): Likewise.
(fm_directory_view_launch_application): Likewise, for launching an
application.
(action_new_launcher_callback): Likewise, for creating a launcher.
(activate_callback): Log the various actions that can happen here.
* src/file-manager/fm-tree-view.c (got_activation_uri_callback):
Log the various activations/launches that can happen.
* src/nautilus-places-sidebar.c (row_activated_callback): Log the
action of the user activating something in the Places sidebar.
* src/nautilus-window-manage-views.c
(nautilus_window_open_location_full): Log the action of changing
the location in a window.
(nautilus_window_set_content_view): Log the action of thanging the
view of a window.
(end_location_change): Log when the window finishes loading.
* src/file-manager/fm-list-view.c (row_expanded_callback): Log the
action of expanding a row to load a subdirectory.
(row_collapsed_callback): Likewise, for collapsing a row.
* src/file-manager/fm-error-reporting.c (fm_rename_file): Log the
action of renaming a file.
* src/nautilus-application.c
(nautilus_application_present_spatial_window_with_selection): Log
when new or existing spatial windows get presented.
(nautilus_application_create_navigation_window): Log when a
navigation window gets created.
2006-11-23 Alexander Larsson <alexl@redhat.com>
* configure.in:
......
......@@ -67,6 +67,8 @@ libnautilus_private_la_SOURCES = \
nautilus-column-utilities.h \
nautilus-customization-data.c \
nautilus-customization-data.h \
nautilus-debug-log.c \
nautilus-debug-log.h \
nautilus-default-file-icon.c \
nautilus-default-file-icon.h \
nautilus-desktop-directory-file.c \
......
......@@ -30,6 +30,7 @@
#include <locale.h>
#include "nautilus-file-operations.h"
#include "nautilus-debug-log.h"
#include "nautilus-file-operations-progress.h"
#include "nautilus-lib-self-check-functions.h"
......@@ -1907,6 +1908,33 @@ nautilus_file_operations_copy_move (const GList *item_uris,
g_assert (item_uris != NULL);
{
const char *action_str;
switch (copy_action) {
case GDK_ACTION_COPY:
action_str = "copy";
break;
case GDK_ACTION_MOVE:
action_str = "move";
break;
case GDK_ACTION_LINK:
action_str = "link";
break;
default:
action_str = "[unknown action]";
break;
}
nautilus_debug_log_with_uri_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, item_uris,
"%s the following URIs to \"%s\":",
action_str,
target_dir ? target_dir : "[empty location]");
}
target_dir_uri = NULL;
trash_dir_uri = NULL;
result = GNOME_VFS_OK;
......@@ -2376,6 +2404,9 @@ nautilus_file_operations_new_folder (GtkWidget *parent_view,
g_assert (parent_dir != NULL);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"create an untitled folder in \"%s\"", parent_dir);
/* pass in the target directory and the new folder name as a destination URI */
if (eel_uri_is_desktop (parent_dir)) {
char *desktop_dir_uri;
......@@ -2574,6 +2605,10 @@ nautilus_file_operations_new_file_from_template (GtkWidget *parent_view,
g_assert (parent_dir != NULL);
g_assert (template_uri != NULL);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"create new file \"%s\" from template \"%s\" in \"%s\"",
target_filename ? target_filename : "(none)", template_uri, parent_dir);
/* pass in the target directory and the new folder name as a destination URI */
if (eel_uri_is_desktop (parent_dir)) {
tmp = nautilus_get_desktop_directory_uri ();
......@@ -2677,6 +2712,10 @@ nautilus_file_operations_new_file (GtkWidget *parent_view,
char *target_filename;
int fd;
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"create new file in \"%s\"",
parent_dir);
fd = mkstemp (source_file_str);
if (fd == -1) {
(*done_callback) (NULL, data);
......@@ -2723,6 +2762,9 @@ nautilus_file_operations_delete (const GList *item_uris,
NautilusFile *file;
TransferInfo *transfer_info;
nautilus_debug_log_with_uri_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, item_uris,
"delete files:");
uri_list = NULL;
for (p = item_uris; p != NULL; p = p->next) {
item_uri = (const char *) p->data;
......@@ -2787,6 +2829,9 @@ do_empty_trash (GtkWidget *parent_view)
TransferInfo *transfer_info;
GList *trash_dir_list;
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"empty trash");
trash_dir_list = nautilus_trash_monitor_get_trash_directories ();
if (trash_dir_list != NULL) {
/* set up the move parameters */
......
......@@ -29,6 +29,7 @@
#include <math.h>
#include "nautilus-icon-container.h"
#include "nautilus-debug-log.h"
#include "nautilus-global-preferences.h"
#include "nautilus-icon-private.h"
#include "nautilus-lib-self-check-functions.h"
......@@ -3595,6 +3596,8 @@ button_release_event (GtkWidget *widget,
nautilus_icon_container_did_not_drag (container, event);
} else {
nautilus_icon_dnd_end_drag (container);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"end drag from icon container");
}
break;
case DRAG_STATE_STRETCH:
......@@ -3666,6 +3669,8 @@ motion_notify_event (GtkWidget *widget,
event,
canvas_x,
canvas_y);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"begin drag from icon container");
}
break;
case DRAG_STATE_STRETCH:
......
......@@ -31,6 +31,7 @@
#include <math.h>
#include "nautilus-icon-dnd.h"
#include "nautilus-debug-log.h"
#include "nautilus-file-dnd.h"
#include "nautilus-icon-private.h"
#include "nautilus-link.h"
......@@ -559,8 +560,15 @@ receive_dropped_color (NautilusIconContainer *container,
GtkSelectionData *data)
{
action = get_background_drag_action (container, action);
if (action > 0) {
char *uri;
uri = get_container_uri (container);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"dropped color on icon container displaying %s", uri);
g_free (uri);
eel_background_receive_dropped_color
(eel_get_widget_background (GTK_WIDGET (container)),
GTK_WIDGET (container),
......@@ -577,6 +585,13 @@ receive_dropped_tile_image (NautilusIconContainer *container, GdkDragAction acti
action = get_background_drag_action (container, action);
if (action > 0) {
char *uri;
uri = get_container_uri (container);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"dropped tile image on icon container displaying %s", uri);
g_free (uri);
eel_background_receive_dropped_background_image
(eel_get_widget_background (GTK_WIDGET (container)),
action,
......@@ -611,6 +626,11 @@ receive_dropped_keyword (NautilusIconContainer *container, const char *keyword,
* so we don't have to worry about async. issues here.
*/
uri = nautilus_icon_container_get_icon_uri (container, drop_target_icon);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"dropped emblem '%s' on icon container URI: %s",
keyword, uri);
file = nautilus_file_get (uri);
g_free (uri);
......
......@@ -80,6 +80,7 @@
#include <libnautilus-private/nautilus-recent.h>
#include <libnautilus-extension/nautilus-menu-provider.h>
#include <libnautilus-private/nautilus-clipboard-monitor.h>
#include <libnautilus-private/nautilus-debug-log.h>
#include <libnautilus-private/nautilus-desktop-icon-file.h>
#include <libnautilus-private/nautilus-desktop-directory.h>
#include <libnautilus-private/nautilus-search-directory.h>
......@@ -770,14 +771,18 @@ fm_directory_view_launch_application (GnomeVFSMimeApplication *application,
{
NautilusFile *file;
GList *l;
GtkWindow *window;
g_assert (application != NULL);
g_assert (NAUTILUS_IS_FILE (files->data));
g_assert (FM_IS_DIRECTORY_VIEW (directory_view));
nautilus_launch_application
(application, files,
fm_directory_view_get_containing_window (directory_view));
window = fm_directory_view_get_containing_window (directory_view);
nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, files,
"fm_directory_view_launch_application window=%p", window);
nautilus_launch_application (application, files, window);
for (l = files; l != NULL; l = l->next) {
file = NAUTILUS_FILE (l->data);
......@@ -816,6 +821,7 @@ open_location (FMDirectoryView *directory_view,
NautilusWindowOpenFlags flags)
{
NautilusFile *file;
GtkWindow *window;
g_assert (FM_IS_DIRECTORY_VIEW (directory_view));
g_assert (new_uri != NULL);
......@@ -830,7 +836,10 @@ open_location (FMDirectoryView *directory_view,
monitor_file_for_open_with (directory_view, NULL);
}
nautilus_file_unref (file);
window = fm_directory_view_get_containing_window (directory_view);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view open_location window=%p: %s", window, new_uri);
nautilus_window_info_open_location (directory_view->details->window,
new_uri, mode, flags, NULL);
}
......@@ -1412,6 +1421,7 @@ action_new_launcher_callback (GtkAction *action,
{
char *parent_uri;
FMDirectoryView *view;
GtkWindow *window;
g_assert (FM_IS_DIRECTORY_VIEW (callback_data));
......@@ -1419,6 +1429,9 @@ action_new_launcher_callback (GtkAction *action,
parent_uri = fm_directory_view_get_backing_uri (view);
window = fm_directory_view_get_containing_window (view);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view create new launcher in window=%p: %s", window, parent_uri);
nautilus_launch_application_from_command (gtk_widget_get_screen (GTK_WIDGET (view)),
"gnome-desktop-item-edit",
"gnome-desktop-item-edit --create-new",
......@@ -3097,9 +3110,19 @@ files_added_callback (NautilusDirectory *directory,
gpointer callback_data)
{
FMDirectoryView *view;
GtkWindow *window;
char *uri;
view = FM_DIRECTORY_VIEW (callback_data);
window = fm_directory_view_get_containing_window (view);
uri = fm_directory_view_get_uri (view);
nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_ASYNC, files,
"files added in window %p: %s",
window,
uri ? uri : "(no directory)");
g_free (uri);
schedule_changes (view);
queue_pending_files (view, directory, files, &view->details->new_added_files);
......@@ -3114,9 +3137,19 @@ files_changed_callback (NautilusDirectory *directory,
gpointer callback_data)
{
FMDirectoryView *view;
GtkWindow *window;
char *uri;
view = FM_DIRECTORY_VIEW (callback_data);
window = fm_directory_view_get_containing_window (view);
uri = fm_directory_view_get_uri (view);
nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_ASYNC, files,
"files changed in window %p: %s",
window,
uri ? uri : "(no directory)");
g_free (uri);
schedule_changes (view);
queue_pending_files (view, directory, files, &view->details->new_changed_files);
......@@ -5297,6 +5330,7 @@ run_script_callback (GtkAction *action, gpointer callback_data)
char *quoted_path;
char *old_working_dir;
char *parameters, *command, *name;
GtkWindow *window;
launch_parameters = (ScriptLaunchParameters *) callback_data;
......@@ -5333,6 +5367,10 @@ run_script_callback (GtkAction *action, gpointer callback_data)
name = nautilus_file_get_name (launch_parameters->file);
/* FIXME: handle errors with dialog? Or leave up to each script? */
window = fm_directory_view_get_containing_window (launch_parameters->directory_view);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view run_script_callback, window=%p, name=\"%s\", command=\"%s\"",
window, name, command);
nautilus_launch_application_from_command (screen, name, command, NULL, FALSE);
g_free (name);
g_free (command);
......@@ -7999,9 +8037,17 @@ fm_directory_view_notify_selection_changed (FMDirectoryView *view)
{
NautilusFile *file;
GList *selection;
GtkWindow *window;
g_return_if_fail (FM_IS_DIRECTORY_VIEW (view));
selection = fm_directory_view_get_selection (view);
window = fm_directory_view_get_containing_window (view);
nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, selection,
"selection changed in window %p",
window);
view->details->selection_was_removed = FALSE;
if (!view->details->selection_change_is_due_to_shell) {
......@@ -8030,7 +8076,6 @@ fm_directory_view_notify_selection_changed (FMDirectoryView *view)
/* If there's exactly one item selected we sniff the slower attributes needed
* to activate a file ahead of time to improve interactive response.
*/
selection = fm_directory_view_get_selection (view);
if (eel_g_list_exactly_one_item (selection)) {
file = NAUTILUS_FILE (selection->data);
......@@ -8049,9 +8094,9 @@ fm_directory_view_notify_selection_changed (FMDirectoryView *view)
NULL,
NULL);
}
nautilus_file_list_free (selection);
}
nautilus_file_list_free (selection);
}
static gboolean
......@@ -8293,6 +8338,7 @@ activate_callback (GList *files, gpointer callback_data)
char *old_working_dir;
ActivationAction action;
GdkScreen *screen;
GtkWindow *window;
parameters = callback_data;
......@@ -8353,12 +8399,18 @@ activate_callback (GList *files, gpointer callback_data)
}
}
window = fm_directory_view_get_containing_window (parameters->view);
launch_desktop_files = g_list_reverse (launch_desktop_files);
for (l = launch_desktop_files; l != NULL; l = l->next) {
file = NAUTILUS_FILE (l->data);
uri = nautilus_file_get_uri (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view activate_callback launch_desktop_file window=%p: %s",
window, uri);
nautilus_launch_desktop_file (
screen, uri, NULL,
fm_directory_view_get_containing_window (view));
......@@ -8370,6 +8422,11 @@ activate_callback (GList *files, gpointer callback_data)
file = NAUTILUS_FILE (l->data);
uri = nautilus_file_get_activation_uri (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view activate_callback launch_application_from_command window=%p: %s",
window, uri);
nautilus_launch_application_from_command (
screen, NULL, uri + strlen (NAUTILUS_COMMAND_SPECIFIER),
NULL, FALSE);
......@@ -8389,6 +8446,11 @@ activate_callback (GList *files, gpointer callback_data)
executable_path = gnome_vfs_get_local_path_from_uri (uri);
quoted_path = g_shell_quote (executable_path);
name = nautilus_file_get_name (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view activate_callback launch_file window=%p: %s",
window, quoted_path);
nautilus_launch_application_from_command (screen, name, quoted_path, NULL, FALSE);
g_free (name);
g_free (quoted_path);
......@@ -8405,6 +8467,11 @@ activate_callback (GList *files, gpointer callback_data)
executable_path = gnome_vfs_get_local_path_from_uri (uri);
quoted_path = g_shell_quote (executable_path);
name = nautilus_file_get_name (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"directory view activate_callback launch_in_terminal window=%p: %s",
window, quoted_path);
nautilus_launch_application_from_command (screen, name, quoted_path, NULL, TRUE);
g_free (name);
g_free (quoted_path);
......@@ -8685,6 +8752,7 @@ fm_directory_view_activate_files (FMDirectoryView *view,
char *file_name;
char *timed_wait_prompt;
int file_count;
GtkWindow *window;
g_return_if_fail (FM_IS_DIRECTORY_VIEW (view));
......@@ -8692,6 +8760,11 @@ fm_directory_view_activate_files (FMDirectoryView *view,
return;
}
window = fm_directory_view_get_containing_window (view);
nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, files,
"fm_directory_view_activate_files window=%p",
window);
file_count = g_list_length (files);
/* link target info might be stale, re-read it */
......
......@@ -29,6 +29,7 @@
#include <string.h>
#include <glib/gi18n.h>
#include <libgnomevfs/gnome-vfs-result.h>
#include <libnautilus-private/nautilus-debug-log.h>
#include <libnautilus-private/nautilus-file.h>
#include <eel/eel-string.h>
#include <eel/eel-stock-dialogs.h>
......@@ -319,6 +320,7 @@ fm_rename_file (NautilusFile *file,
{
char *old_name, *wait_message;
FMRenameData *data;
char *uri;
g_return_if_fail (NAUTILUS_IS_FILE (file));
g_return_if_fail (new_name != NULL);
......@@ -346,6 +348,12 @@ fm_rename_file (NautilusFile *file,
NULL); /* FIXME bugzilla.gnome.org 42395: Parent this? */
g_free (wait_message);
uri = nautilus_file_get_uri (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"rename file old=\"%s\", new=\"%s\"",
uri, new_name);
g_free (uri);
/* Start the rename. */
nautilus_file_rename (file, new_name,
rename_callback, NULL);
......
......@@ -54,6 +54,7 @@
#include <libnautilus-extension/nautilus-column-provider.h>
#include <libnautilus-private/nautilus-column-chooser.h>
#include <libnautilus-private/nautilus-column-utilities.h>
#include <libnautilus-private/nautilus-debug-log.h>
#include <libnautilus-private/nautilus-directory-background.h>
#include <libnautilus-private/nautilus-dnd.h>
#include <libnautilus-private/nautilus-file-dnd.h>
......@@ -785,6 +786,15 @@ row_expanded_callback (GtkTreeView *treeview, GtkTreeIter *iter, GtkTreePath *pa
view = FM_LIST_VIEW (callback_data);
if (fm_list_model_load_subdirectory (view->details->model, path, &directory)) {
char *uri;
uri = nautilus_directory_get_uri (directory);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"list view row expanded window=%p: %s",
fm_directory_view_get_containing_window (FM_DIRECTORY_VIEW (view)),
uri);
g_free (uri);
fm_directory_view_add_subdirectory (FM_DIRECTORY_VIEW (view), directory);
if (nautilus_directory_are_all_files_seen (directory)) {
......@@ -848,6 +858,7 @@ row_collapsed_callback (GtkTreeView *treeview, GtkTreeIter *iter, GtkTreePath *p
GtkTreeIter parent;
struct UnloadDelayData *unload_data;
GtkTreeModel *model;
char *uri;
view = FM_LIST_VIEW (callback_data);
model = GTK_TREE_MODEL (view->details->model);
......@@ -863,6 +874,14 @@ row_collapsed_callback (GtkTreeView *treeview, GtkTreeIter *iter, GtkTreePath *p
-1);
}
uri = nautilus_file_get_uri (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"list view row collapsed window=%p: %s",
fm_directory_view_get_containing_window (FM_DIRECTORY_VIEW (view)),
uri);
g_free (uri);
unload_data = g_new (struct UnloadDelayData, 1);
unload_data->view = view;
unload_data->file = file;
......
......@@ -61,6 +61,7 @@
#include <libgnomevfs/gnome-vfs-utils.h>
#include <libgnomevfs/gnome-vfs-volume-monitor.h>
#include <libnautilus-private/nautilus-clipboard-monitor.h>
#include <libnautilus-private/nautilus-debug-log.h>
#include <libnautilus-private/nautilus-file-attributes.h>
#include <libnautilus-private/nautilus-file-operations.h>
#include <libnautilus-private/nautilus-global-preferences.h>
......@@ -344,12 +345,18 @@ got_activation_uri_callback (NautilusFile *file, gpointer callback_data)
&& eel_str_has_prefix (uri, NAUTILUS_COMMAND_SPECIFIER)) {
uri += strlen (NAUTILUS_COMMAND_SPECIFIER);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"tree view launch_application_from_command window=%p: %s",
view->details->window, uri);
nautilus_launch_application_from_command (screen, NULL, uri, NULL, FALSE);
} else if (uri != NULL
&& eel_str_has_prefix (uri, NAUTILUS_DESKTOP_COMMAND_SPECIFIER)) {
file_uri = nautilus_file_get_uri (file);
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"tree view launch_desktop_file window=%p: %s",
view->details->window, file_uri);
nautilus_launch_desktop_file (screen, file_uri, NULL, NULL);
g_free (file_uri);
......@@ -362,6 +369,9 @@ got_activation_uri_callback (NautilusFile *file, gpointer callback_data)
/* Non-local executables don't get launched. They act like non-executables. */
if (file_uri == NULL) {
nautilus_debug_log (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER,
"tree view window_info_open_location window=%p: %s",
view->details->window, uri);