[gnome-commander] Migrate away from gnome_vfs_expand_initial_tilde
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Migrate away from gnome_vfs_expand_initial_tilde
- Date: Fri, 1 Oct 2021 22:19:35 +0000 (UTC)
commit eb6b49407ff548d4a3f24ad5b0ce945d44d25127
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Oct 2 00:19:17 2021 +0200
Migrate away from gnome_vfs_expand_initial_tilde
src/gnome-cmd-file-list.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 47cd4c8a..12ff2c2e 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -2934,7 +2934,11 @@ void GnomeCmdFileList::goto_directory(const gchar *in_dir)
gchar *dir;
if (g_str_has_prefix (in_dir, "~"))
- dir = gnome_vfs_expand_initial_tilde (in_dir);
+ {
+ strlen(in_dir) > 1
+ ? dir = g_strdup_printf("%s%s" , g_get_home_dir(), in_dir+1)
+ : dir = g_strdup_printf("%s" , g_get_home_dir());
+ }
else
dir = unquote_if_needed (in_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]