execute_command.sh: update the check for /etc/profile.d files
Signed-off-by: Hongmei Gou <h-gou@ti.com>
Signed-off-by: Hongmei Gou <h-gou@ti.com>
execute_command.sh: execute /etc/profile.d/*.sh only when they exist
Signed-off-by: Hongmei Gou <h-gou@ti.com>
Signed-off-by: Hongmei Gou <h-gou@ti.com>
execute_command.sh: Remove refresh_screen.
* Since moving to QT5 over EGLFS/nullDRM this is no longer needed and
ends up causing the issue it was intended to resolve.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
* Since moving to QT5 over EGLFS/nullDRM this is no longer needed and
ends up causing the issue it was intended to resolve.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
6 years agoexecute_command.sh: Set up default environment for matrix apps. cloned/master origin/HEAD origin/master
execute_command.sh: Set up default environment for matrix apps.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Remove border from HTML 5 apps
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
index.php: Generate json.txt if file is empty
* There are situations where json.txt exist but is empty if a proper board
shutdown or reboot isn't done resulting in a blank json.txt.
* Check if json.txt is empty and if so force it to be regenerated.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
* There are situations where json.txt exist but is empty if a proper board
shutdown or reboot isn't done resulting in a blank json.txt.
* Check if json.txt is empty and if so force it to be regenerated.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Update makefile to include install error
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Add support for application icons for various resolutions
* It is handy for HTML applications to use icons whose size depends on the
screen used.
* Add new CSS class that these html application can utilize.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
* It is handy for HTML applications to use icons whose size depends on the
screen used.
* Add new CSS class that these html application can utilize.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Add php page to allow commands to be executed
* Use a php page that can "execute" commands if passed as a parameter.
* This is used by Matrix HTML applications.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
* Use a php page that can "execute" commands if passed as a parameter.
* This is used by Matrix HTML applications.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Add support for HTML 5 applications
* Add new ProgramType "web" which allows HTML based applications to be used.
* New web applications are ran via an iframe
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
* Add new ProgramType "web" which allows HTML based applications to be used.
* New web applications are ran via an iframe
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
matrix-gui-v2: Enhance to all allow double quotes on executable arguments
Also evaluate the string before executing it.
Signed-off-by: Jeff Lance <j-lance1@ti.com>
Also evaluate the string before executing it.
Signed-off-by: Jeff Lance <j-lance1@ti.com>
Makefile: Add a simple makefile for build clean install
* Added a simple makefile with do nothing build and clean commands
and an install command that will install the matrix files.
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
* Added a simple makefile with do nothing build and clean commands
and an install command that will install the matrix files.
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
matrix-gui-v2: Auto Resolution Detection
*Added Javascript that detects the user's screen size and automatically
chooses which css file to include and the size of the icon grid. This
replaces the old system which forced Remote and Local Matrix to use a
specific icon grid size and css file that was choosen when Matrix was built.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
*Added Javascript that detects the user's screen size and automatically
chooses which css file to include and the size of the icon grid. This
replaces the old system which forced Remote and Local Matrix to use a
specific icon grid size and css file that was choosen when Matrix was built.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
matrix-gui-v2: Fix bug with .desktop and Json.txt files
*Previous patch missed a particular scenario that cause the PHP errors to still be displayed.
This patch fixes that issue.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
*Previous patch missed a particular scenario that cause the PHP errors to still be displayed.
This patch fixes that issue.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
matrix-gui-v2: Bug fixes
*Fixes an issue that causes PHP errors if generate.php runs
and no .desktop file is found
*Also fixes a possible issue where the Json.txt file isn't found or
is empty.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
*Fixes an issue that causes PHP errors if generate.php runs
and no .desktop file is found
*Also fixes a possible issue where the Json.txt file isn't found or
is empty.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
LICENSE: clarify licensing
* Clarified the licensing for the javascript files vs. the php
files.
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
* Clarified the licensing for the javascript files vs. the php
files.
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
matrix-gui-v2: Generate json.txt file when needed
*Now index.php script checks to see if the json.txt file exist. If it doesn't
exist it will now generate the file on its own.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
*Now index.php script checks to see if the json.txt file exist. If it doesn't
exist it will now generate the file on its own.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
matrix-gui-v2: Matrix v2 restructuring
*Restructred/cleanup Matrix v2 code
*Console output is now shown using a fixed width font
*Added alot of comments
*Fixed issue with the "Does your target system have an attached display device" sometimes not being rendered properly
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
*Restructred/cleanup Matrix v2 code
*Console output is now shown using a fixed width font
*Added alot of comments
*Fixed issue with the "Does your target system have an attached display device" sometimes not being rendered properly
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
matrix-gui: Set icon image for Remote Matrix to 96x96
*Forces the icon image in Remote Matrix to be 96x96. This
should make sure all icons are lined up properly
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*Forces the icon image in Remote Matrix to be 96x96. This
should make sure all icons are lined up properly
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
matrix-gui: Added support for tab character
*Added support for the tab character in run_script.php. This should allow
text output that is formatted using tabs to be properly displayed.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*Added support for the tab character in run_script.php. This should allow
text output that is formatted using tabs to be properly displayed.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
matrix_gui: Updated to use the new refresh screen application
*A new application called refresh_screen is used to force a screen refresh
after an application is ran. This resolves a problem that occured when
Remote Matrix was launching a multimedia application. When the application
terminated local Matrix still displayed the last frame of the multimedia application.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*A new application called refresh_screen is used to force a screen refresh
after an application is ran. This resolves a problem that occured when
Remote Matrix was launching a multimedia application. When the application
terminated local Matrix still displayed the last frame of the multimedia application.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
matrix-gui: Added License information and Modified some files
*Renamed a css and .ini file from 800x460... to 800x480... This represents the correct resolution the files are
meant for.
*Removed requestpage.php and filereader.php since the files are no longer needed.
*Added license information to all script files and created a LICENSE file
*Removed some css that was no longer needed
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*Renamed a css and .ini file from 800x460... to 800x480... This represents the correct resolution the files are
meant for.
*Removed requestpage.php and filereader.php since the files are no longer needed.
*Added license information to all script files and created a LICENSE file
*Removed some css that was no longer needed
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
matrix-gui: Updated some various visual aspects of Matrix
*Updated Matrix menu bar title. Title is updated based on the page you are on.
*menubar.php removes % width for left, center and right section of the menu. This
allows the page to resize alot better on different resolution.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*Updated Matrix menu bar title. Title is updated based on the page you are on.
*menubar.php removes % width for left, center and right section of the menu. This
allows the page to resize alot better on different resolution.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
matrix-gui-v2: Updated support for 640x480 screens
*Added configuration file and css for 640x480 screens.
*Updated App Description to remove the application title from the description section. It isn't needed since the HTML description files people created already included a title
*In the Coming Soon page I reduced the size of the text since it was too big previously.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
*Added configuration file and css for 640x480 screens.
*Updated App Description to remove the application title from the description section. It isn't needed since the HTML description files people created already included a title
*In the Coming Soon page I reduced the size of the text since it was too big previously.
Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
Added support for am335x and am180x. Console application's output now use a fix width font. Created a new way to configurate Matrix based on the screen resolution.
Fixed issue in IE. Single bracket was missing and prevented the app_description page from being displayed.
Prevent apps/scripts that doesn't have a lock from creating a -1 lock file
Added check for lock incase the -1 to indicate there is nothing in the menu option is either -1 a int or -1 a string
Moved around the div tags for app_description, title and all the possible error or warning messages
Deleting am37x-evm.css file from repo. Was deleted by the previous commit but I forget to remove it during the commit
Moved the console output files to a new directory called tmp. Moved the lock files to a directory called lock. Fixed once again a previous bug that caused IE to cache output results. Changes the Script Complete string to something more unique to detect incase scripts my use the same wording and will result in the script terminating prematurely.
This commit changes which pages worry about passing lock information. Previously index2.php and app_description.php passed the list of locks to run_script.php. This has now changed to having run_script.php handling all lock related information. The previous two scripts now just pass the name of the app and the submenu that app is located in. Also when a GUI application is finished running the browser will now go back to the previous screen that invoked running the GUI application. This also fixed the issue of when running a 3D demo that the page wasn't being refreshed therefore you could still see part of the 3D demo on top of matrix. However, this fix only really works when running matrix locally. When Matrix detects a GUI application it no longer updates the screen which was sometimes causing flickering issues. The finally I fixed a bug that rarely shows up. Sometimes when running a script the output file hasn't been created in time for Matrix to read it in. This caused Matrix to stop and prevent anything from working again until Matrix was restarted. Now there is a check to see if there was a problem reading the output file. If there is Matrix will try to read the file up to three times and if it still fails it will display an error and reenable the back and main menu button.
Updated the generate script to be case insensitive when searching for .desktop parameters. Also added the deletetion of the temp file catdesktop.txt that is only used in the script.
9 years agoChanged the fetching of the output txt from using a php script to read the file to... scroll-disable cloned/scroll-disable origin/scroll-disable
Changed the fetching of the output txt from using a php script to read the file to reading the file directly. Also the output is read every 3 seconds instead of every 4 seconds. The output file is deleted 20 seconds after the script is completed instead of the orginal 10.
Fixed issue in IE 7 that prevented links from being clicked on
Added HTML Document Type for IE so that the javascript code will work properly. Added the feature to detect if application is GUI or not and display specific messages. Also moved some server side scripting to client side. This way a Remote and Local client running matrix can use the same exact cache data.
Remove final references to YUI. Updated the jquery javascript library to use the compressed version. Updated the code to alert if a user double clicked a icon which will result in multiple request being made. The combination of the cap touch touchscreen and sometimes slight lag when clicking a link makes this event happen alot more then I initially thought
Alot of javascript cleanup was done. Also added ProgramType support to the generate script although the functionality isn't used anywhere else yet
Added Up Directory/Aka Back feature
Included the change that the div's output will automatically display the latest information
Removed swiping gesture
Updated to correct TI logo. Disable the Main Menu button when a script is running and redisplay it when the script is complete
Added fix to also redirect error output to the txt file which is read into the file reader script for Matrix
Made the fix for dragging images on the subarctic evm
Increased the swipe distance needed to swipe to next page if there are more applications than can fit on one screen. Also flipped the swipe gesture required to go to the next or previous screen. It now mimics typical touchscreen swipe gestures. Increase the icons displayed on 1 page from 4 cols 2 rows to 4 cols 3 rows
Merge branch 'franklin' of git://gitorious.org/matrix-gui-v2/matrix-gui-v2 into franklin
Amending commit. Fixed the coming soon feature to take the user to a seperate page. This displays a page telling them that the applications within the submenu will be coming soon
Fixed the coming soon feature to take the user to a seperate page and letting them know that the applications within the directory will be coming soon
Fix issued where gui applications werent running
Fix issues with IE 8 that resulted in running scripts not properly working and actually loading the main menu. Also added feature for Coming Soon being auto generated if no applications are located within a submenu.
Franklin's version of Matrix 2 initial commit
9 years agoAdd memory so yo can return to the previous submenu viewed when hitting the back... matrix-v2-javascript-backup cloned/matrix-v2-javascript-backup origin/matrix-v2-javascript-backup
Add memory so yo can return to the previous submenu viewed when hitting the back button.
Move the run button to the top of description pages
Modify sytlesheet to make matrix have the common 4x3 look for all browser window sizes. When the broswer viewing area is small, adjust to 2x4 with smaller icons.
Replacing tex.png with an official TI logo.
9 years agoMatrix: removed minified matrix script and google closure compiler deps. thomas origin/thomas
Matrix: removed minified matrix script and google closure compiler deps.
Also changed back button icon and improved cache clearing
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Also changed back button icon and improved cache clearing
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
fixed background flickering when 3d apps ran
Added code to reduce flickering when graphics apps are done
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Rough draft of README Done
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
updated readme
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
added README
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Done source documentation
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
added pageBuilder documentation
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Restructured documentation and began addind documentation for server side code.
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
removed an unused variable
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
added documentation for initDescriptionCache
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Added in tools to generate minified combined code using the google closure compiler.
* Will result in faster load times and responsiveness
* Fixed an issue where the app list and description would not be properly sent
on the first startup of a server without a cache.
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
* Will result in faster load times and responsiveness
* Fixed an issue where the app list and description would not be properly sent
on the first startup of a server without a cache.
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Added in generated jsdoc-toolkit documentation
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Added in client side documentation and moved javascript out of index_ajax.html for compatability with jsdoc-toolkit.
(http://code.google.com/p/jsdoc-toolkit/)
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
(http://code.google.com/p/jsdoc-toolkit/)
Signed-off-by: Thomas Potthast <tpotthast@ti.com>
Fixed locks
Merge branch 'master' of gitorious.org:matrix-gui-v2/matrix-gui-v2
README: add readme to describe modules and licenses
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
added checks for directories
cleanup repository
* Remove unneeded files and set permissions properly.
* apps directory has been moved to a separate repository at
git://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps.git
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
* Remove unneeded files and set permissions properly.
* apps directory has been moved to a separate repository at
git://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps.git
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
actually included new files...
Added functionality to generate all app descriptions and JSON encode them for a single transfer.
This improves response time as it only requires one HTTP GET request for all the descriptions.
This request is done on startup in index_ajax.html, and then will give near-instant description
display. Applist generation in applist.js was also changed to accept a callback function, providing
significantly more flexibility. Additionally, functionality to handle multiple concurrent new requests
to generate the app list was added. Previously this caused duplication of apps with requests sent
before the first was concluded. The applist and app descriptions are also kept in RAM now, which should
improve response times.
This improves response time as it only requires one HTTP GET request for all the descriptions.
This request is done on startup in index_ajax.html, and then will give near-instant description
display. Applist generation in applist.js was also changed to accept a callback function, providing
significantly more flexibility. Additionally, functionality to handle multiple concurrent new requests
to generate the app list was added. Previously this caused duplication of apps with requests sent
before the first was concluded. The applist and app descriptions are also kept in RAM now, which should
improve response times.
added .gitignore files for new dirs.
Moved node modules into main dir for simplicity of installation, and added cache/output/lock folders.
Actually commited new desktop files, and should have fixed selection issues
Added new .desktop files, better support for small screens, and prefetching functionality for app description pages.
added priority sorting and fixed bad .desktop files
better swiping, app execution, and started fixing app description files
better swiping
fixed menu icon not always showing up
added better app output streaming and app list generation
Added ajax main page. It gives dramatically better response times.
minor improvements and cleaned up fs
Added cache headers for jquery and icons, and added a script to build menu cache
Added new .desktop files, removed socket.io
page used for app output 'streaming'
.desktop support, app launching support
added app execution and output capture
moved old bin dir and added the utils file
added .desktop support and cache clearing
Changed html generation to server side, and added support fur url submenus. Also added support for menu caching.
pushed down priority of message logging
fixed socket init
changed socket init code to not not recreate on every call
improved log function
removed 900px default height