Re: [PATCH] get current working directory on Darwin

2012-01-27 Thread Nicholas Marriott
Applied, thanks!


On Fri, Jan 27, 2012 at 05:16:21AM +0100, Alex Ernst wrote:
> Hello,
> 
> this patch adds some platform specific code for Darwin to retrieve the 
> current working directory of the process in the active pane.
> 
> Alex
> 
> 
> diff --git a/osdep-darwin.c b/osdep-darwin.c
> index c5820df..7b15446 100644
> --- a/osdep-darwin.c
> +++ b/osdep-darwin.c
> @@ -18,6 +18,7 @@
> 
> #include 
> #include 
> +#include 
> 
> #include 
> #include 
> @@ -52,6 +53,15 @@ osdep_get_name(int fd, unused char *tty)
> char *
> osdep_get_cwd(pid_t pid)
> {
> + static char wd[PATH_MAX];
> + struct proc_vnodepathinfo pathinfo;
> + int ret;
> +
> + ret = proc_pidinfo(pid, PROC_PIDVNODEPATHINFO, 0, &pathinfo, 
> sizeof(pathinfo));
> + if (ret == sizeof(pathinfo)) {
> + strlcpy(wd, pathinfo.pvi_cdir.vip_path, sizeof(wd));
> + return (wd);
> + }
>   return (NULL);
> }
> --
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> ___
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Tmux bug on Arch Linux

2012-01-27 Thread Teo Emmanouilidis
System: Arch Linux
See also this thread on Arch Linux forums:
https://bbs.archlinux.org/viewtopic.php?id=134318

$ sudo pacman -Syu
Password: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (1): tmux-1.6-1

Total Installed Size:   0.40 MiB
Net Upgrade Size:   0.02 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity
[##] 100% error: tmux: signature from
"Sergej Pupykin " is marginal trust error: failed to
commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded. 



--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux bug on Arch Linux

2012-01-27 Thread Tiago Resende
This is not a bug in tmux, but in pacman. You can file a bug report
here:

https://bugs.archlinux.org/


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users