• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?


  • Subject: Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
  • From: Jonathan Hendry <email@hidden>
  • Date: Fri, 26 Feb 2010 21:03:17 -0500

You might try checking for any telltale running processes, or checking the output of lsof -i for any open sockets that are indicative of a VNC or ARD connection. That might have to run sudo'd as root.

http://www.akadia.com/services/lsof_quickstart.txt


On Feb 26, 2010, at 18:53 PM, Joe Jones wrote:

> That's what I thought.
>
> Why? So we can limit certain functionality over a remote connection. We do this for Terminal Services connections on Windows and I was asked about doing it for Mac.
>
> Thanx,
> joe
>
> ________________________________________
> From: Matthew Lindfield Seager [email@hidden]
> Sent: Friday, February 26, 2010 1:41 PM
> To: Joe Jones
> Cc: email@hidden
> Subject: Re: Is there any Cocoa API (or other way) to determine if an   application is running in a VNC or ARD session?
>
> On Saturday, February 27, 2010, Joe Jones <email@hidden> wrote:
>>
>> Thanx,
>> Joe
>
> Why? What are you trying to achieve?
>
> I doubt it though! AFAIK you can only have a remote console (i.e.
> screen sharing) so the app isn't running in the VNC session, it's
> running normally on the host computer.
>
> Your question only makes sense in the context of "Terminal Services"
> style connections which aren't available on Snow Leopard [Server]
> without third party software.
>
> Even if you could know if a user is currently connected via VNC/RDP
> and even if you could tell whether the remote or local session (or
> both at the same time) are currently controlling the computer that
> still wouldn't take into consideration other sharing solutions (e.g.
> LogMeIn).
>
> Matt
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
      • From: Matthew Lindfield Seager <email@hidden>
References: 
 >Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session? (From: Joe Jones <email@hidden>)
 >Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session? (From: Matthew Lindfield Seager <email@hidden>)
 >RE: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session? (From: Joe Jones <email@hidden>)

  • Prev by Date: RE: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
  • Next by Date: Re: Improving the User Experience for First Use of Downloadable Software
  • Previous by thread: RE: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
  • Next by thread: Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
  • Index(es):
    • Date
    • Thread