ports/101623: e16editmenu wrong path to file.menu - patch attached
Michael Metzger
mmetzger at mv-research.com
Tue Aug 8 04:10:21 UTC 2006
>Number: 101623
>Category: ports
>Synopsis: e16editmenu wrong path to file.menu - patch attached
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 08 04:10:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Michael Metzger
>Release: Freebsd 6.1 Release-p2
>Organization:
Marketvision Research
>Environment:
FreeBSD fireball.msquared.com 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #0: Wed Jun 21 01:37:43 EST 2006 root at fireball.msquared.com:/usr/obj/usr/src/sys/GENERIC i38
>Description:
Port /usr/ports/x11-wm/e16utils/ assumes enlightenment window manager user has the following path to menu file for enlightenment. But, after building enlightenment window manager this directory structure is not there.
Bad file menu path:
/home/<username>/.enlightenment/file.menu
Correct file menu path should be:
/home/<username>/.e16/menus/file.menu
Patch to fix port will be listed below.
>How-To-Repeat:
-Build and install /usr/ports/x11-wm/enlightenment/ --version 0.16.8.1
-Build and install /usr/ports/x11-wm/e16utils/ --version 0.16
-Run from xterm e16editmenu
Output is this:
hmm. looks like you have some "issues" as you don't have
a /home/mmetzger/.enlightenment/file.menu file. Sucks to be you
>Fix:
Patch proposed:
--- viewer_new.c Mon Aug 7 23:29:16 2006
+++ viewer.c Mon Aug 7 23:34:38 2006
@@ -34,7 +34,7 @@
if (!file_to_load)
return;
if (file_to_load[0] != '/')
- sprintf (buf, "%s/.enlightenment/%s", homedir (getuid ()), file_to_load);
+ sprintf (buf, "%s/.e16/menus/%s", homedir (getuid ()), file_to_load);
else
sprintf (buf, "%s", file_to_load);
@@ -108,7 +108,7 @@
GtkCTreeNode *parent = NULL;
/* currently hardcoded, but not a big issue to change later */
- sprintf (buf, "%s/.enlightenment/file.menu", homedir (getuid ()));
+ sprintf (buf, "%s/.e16/menus/file.menu", homedir (getuid ()));
menufile = fopen (buf, "r");
if (!menufile)
{
@@ -564,7 +564,7 @@
gint retval = 0;
buf =
- g_strjoin ("/", homedir (getuid ()), ".enlightenment", "file.menu", NULL);
+ g_strjoin ("/", homedir (getuid ()), ".e16/menus", "file.menu", NULL);
node =
gtk_ctree_export_to_gnode (GTK_CTREE (ctree), NULL, NULL,
@@ -683,7 +683,7 @@
{
/* Tarnation! A relative path */
realfile =
- g_strjoin ("/", homedir (getuid ()), ".enlightenment", file, NULL);
+ g_strjoin ("/", homedir (getuid ()), ".e16/menus", file, NULL);
}
else
realfile = g_strdup (file);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list