summaryrefslogtreecommitdiff
path: root/src/nautilus-file-utilities.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2017-12-12 16:56:29 +0200
committerErnestas Kulik <ernestask@gnome.org>2018-01-02 12:51:32 +0200
commit74dd9c9f72002d482c898a704bb5b95655e35e08 (patch)
tree0472fecf3b99f1669be99fe18f343d0a47eea535 /src/nautilus-file-utilities.c
parent816b8247f3147637d13b55446ee38d4470c0f225 (diff)
downloadnautilus-74dd9c9f72002d482c898a704bb5b95655e35e08.tar.gz
general: remove desktop support
Diffstat (limited to 'src/nautilus-file-utilities.c')
-rw-r--r--src/nautilus-file-utilities.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/src/nautilus-file-utilities.c b/src/nautilus-file-utilities.c
index 26683729e..ba67b8559 100644
--- a/src/nautilus-file-utilities.c
+++ b/src/nautilus-file-utilities.c
@@ -404,62 +404,6 @@ get_desktop_path (void)
return desktop_path;
}
-/**
- * nautilus_get_desktop_directory:
- *
- * Get the path for the directory containing files on the desktop.
- *
- * Return value: the directory path.
- **/
-char *
-nautilus_get_desktop_directory (void)
-{
- const char *desktop_directory;
-
- desktop_directory = get_desktop_path ();
-
- /* Don't try to create a home directory */
- if (!g_file_test (desktop_directory, G_FILE_TEST_EXISTS))
- {
- g_mkdir (desktop_directory, DEFAULT_DESKTOP_DIRECTORY_MODE);
- /* FIXME bugzilla.gnome.org 41286:
- * How should we handle the case where this mkdir fails?
- * Note that nautilus_application_startup will refuse to launch if this
- * directory doesn't get created, so that case is OK. But the directory
- * could be deleted after Nautilus was launched, and perhaps
- * there is some bad side-effect of not handling that case.
- */
- }
-
- return g_strdup (desktop_directory);
-}
-
-GFile *
-nautilus_get_desktop_location (void)
-{
- return g_file_new_for_path (get_desktop_path ());
-}
-
-/**
- * nautilus_get_desktop_directory_uri:
- *
- * Get the uri for the directory containing files on the desktop.
- *
- * Return value: the directory path.
- **/
-char *
-nautilus_get_desktop_directory_uri (void)
-{
- char *desktop_path;
- char *desktop_uri;
-
- desktop_path = nautilus_get_desktop_directory ();
- desktop_uri = g_filename_to_uri (desktop_path, NULL, NULL);
- g_free (desktop_path);
-
- return desktop_uri;
-}
-
char *
nautilus_get_home_directory_uri (void)
{
@@ -946,7 +890,7 @@ ensure_dirs_task_ready_cb (GObject *_source,
locations = locations_from_file_list (files);
nautilus_file_operations_move
- (locations, NULL,
+ (locations,
original_dir_location,
data->parent_window,
NULL, NULL);