Comments (10)
Now with the "minimize_to_tray" option available it would be useful to be able to start php desktop minimized. For example when app needs to run in background and auto start on Windows boot. This could be accomplished by introducing a command-line flag to start app minimized eg phpdesktop-chrome.exe --start-minimized
. With this flag and "minimize_to_tray" set to True app would start and show only in system tray.
from phpdesktop.
Release Candidate 31.10 added option to minimize to system tray, see the above commit for the new options.
from phpdesktop.
I also would like this feature. I want to build desktop widgets based on your project.
Original comment by [email protected]
on 17 May 2013 at 8:17
from phpdesktop.
Two points of reference for anyone attempting this feat:
http://www.codeproject.com/Articles/74/Adding-Icons-to-the-System-Tray
http://bobobobo.wordpress.com/2009/03/30/adding-an-icon-system-tray-win32-c/
Original comment by [email protected]
on 23 Oct 2013 at 7:17
from phpdesktop.
It is still open for discussion what system tray functionality should be implemented. For what I see that would be needed is:
-
A dictionary option in settings.json like "tray_menu", that would define elements in the tray menu and their corresponding command identifiers. For example:
tray_menu = {
"Action 1": "command1",
"Action 2": "command2"
} -
Javascript bindings need to be created for communication between system tray and application. When "Action 1" is clicked, a javascript code would be executed in main browser window, something like "SystemTray_CommandCallback("command1")". You would need to define that js function on your webpage to intercept executed commands from system tray.
-
From javascript, you can communicate with PHP scripts by using XMLHttpRequest. This is already possible.
-
Probably some javascript API would be needed. A "PhpDesktop" object would be available in javascript that would have functions like: MaximizeWindow(), MinimizeWindow(), RestoreWindow(), MinimizeToTray(). I don't know what exactly is needed, haven't though too much about it.
Please share with us your use cases for the system tray, so we can decide what API would need to be added to PHP Desktop.
Original comment by [email protected]
on 20 Jan 2014 at 1:47
- Changed state: Accepted
from phpdesktop.
See Tray API in Node-Webkit: https://github.com/rogerwang/node-webkit/wiki/Tray
See also "Minimize to tray" example: https://github.com/rogerwang/node-webkit/wiki/Minimize-to-tray
Original comment by [email protected]
on 16 Feb 2014 at 3:48
from phpdesktop.
Hello,
How can we change the 'Elephant task bar Icon' to a custom icon ?
Thank you
from phpdesktop.
Macwilcy: I think this question has been answered before... anyway... just use Resource Hacker to change the icon. ;)
from phpdesktop.
A tool tip showing the application title when the mouse hovers over the icon in the tray will be a small, but useful feature.
Thanks.
from phpdesktop.
replace icon with resource hacker keeps showing 'out of memory'.
from phpdesktop.
Related Issues (20)
- Linux build php-cgi shared library issue HOT 2
- php-desktop 57.0 not interpreting HTML HOT 1
- Update HOT 4
- Bootstrap 5 off canvas, modals, burgur menu dropdowns is not working in php-desktop for windows. HOT 5
- Any version without chrome HOT 5
- Algum procedimento recomendado para a lib funcionar na versão 7.4 do php?
- Most links on Build/Windows are dead? HOT 2
- slowness HOT 1
- How to upgrade the CEF version? HOT 2
- Unable to play local video HOT 3
- Bootstrap js and Nav Js not work HOT 2
- Compilation : 'OVERRIDE' : unknown substitution specifier HOT 1
- Uncaught (in promise) ReferenceError: AbortController is not defined
- Codeigniter 4 sqlite3 connection problem HOT 3
- Code protection suggestion HOT 7
- Is PHP Desktop compatible with Laravel latest ( versrion 10.x now )?
- Default Window Size But
- how to update the chromium version HOT 6
- how to build this project HOT 3
- Why does php desktop run slow when the machine is connected to internet???
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdesktop.