- Added Chris Roberts OpenTerminal.

- Added him to Contributors
- Missing a icon thoug, any thoughts about how it should look?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32334 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Modeen
2009-08-13 22:54:05 +00:00
parent 570830b85b
commit be454e17a1
5 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ AddFilesToHaikuImage system add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ;
AddFilesToHaikuImage system add-ons media plugins
: $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ;
AddFilesToHaikuImage system add-ons Tracker
: FileType-F ZipOMatic-Z Open\ Target\ Folder-T ;
: FileType-F ZipOMatic-Z Open\ Target\ Folder-T OpenTerminal-T ;
AddSymlinkToHaikuImage system add-ons Tracker
: /boot/system/preferences/Backgrounds : Background-B ;
AddSymlinkToHaikuImage system add-ons Tracker
+1
View File
@@ -4,5 +4,6 @@ SubInclude HAIKU_TOP src add-ons tracker filetype ;
SubInclude HAIKU_TOP src add-ons tracker iconvader ;
SubInclude HAIKU_TOP src add-ons tracker opentargetfolder ;
SubInclude HAIKU_TOP src add-ons tracker mark_as ;
SubInclude HAIKU_TOP src add-ons tracker OpenTerminal ;
SubInclude HAIKU_TOP src add-ons tracker zipomatic ;
+9
View File
@@ -0,0 +1,9 @@
SubDir HAIKU_TOP src add-ons tracker OpenTerminal ;
SetSubDirSupportedPlatformsBeOSCompatible ;
Addon OpenTerminal-T :
OpenTerminal.cpp
: be tracker
;
@@ -0,0 +1,52 @@
/*
* Copyright 2007 - 2008 Chris Roberts. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Chris Roberts, [email protected]
*/
#include <StorageKit.h>
#include <SupportKit.h>
#include <add-ons/tracker/TrackerAddOn.h>
#define APPLICATION "/boot/system/apps/Terminal &"
// The trailing '&' is so that it forks to the background and doesn't block
//execution
void
launch_terminal(BEntry* entry)
{
BPath path;
if (entry->GetPath(&path) != B_OK)
return;
chdir(path.Path());
system (APPLICATION);
}
void
process_refs(entry_ref base_ref, BMessage* message, void* reserved)
{
BEntry entry;
int32 i;
entry_ref tracker_ref;
for (i = 0; message->FindRef("refs", i, &tracker_ref) == B_OK; i++) {
// Pass 'true' as the traverse argument so that if the ref is a
// symbolic link, we get the target of the link to ensure that it
// actually exists
if (entry.SetTo(&tracker_ref, true) == B_OK) {
if (entry.IsDirectory())
launch_terminal(&entry);
}
}
// No folders were selected so we'll use the base folder
if (i == 0) {
if (entry.SetTo(&base_ref) == B_OK)
launch_terminal(&entry);
}
}
+1
View File
@@ -836,6 +836,7 @@ AboutView::_CreateCreditsView()
"Jeremy Rand\n"
"Hartmut Reh\n"
"Daniel Reinhold\n"
"Chris Roberts\n"
"Samuel Rodriguez Perez\n"
"Thomas Roell\n"
"Rafael Romo\n"