mirror of https://github.com/keeweb/keeweb.git
get linux window title
This commit is contained in:
parent
4503f4bcd8
commit
41cace7805
|
@ -1,12 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
// var Launcher = require('../../comp/launcher');
|
||||
var Launcher = require('../../comp/launcher');
|
||||
|
||||
var AutoTypeHelper = function() {
|
||||
};
|
||||
|
||||
AutoTypeHelper.prototype.getActiveWindowTitle = function(callback) {
|
||||
callback('Not implemented');
|
||||
Launcher.spawn({
|
||||
cmd: 'xdotool',
|
||||
args: ['getactivewindow', 'getwindowname'],
|
||||
callback: function(err, res) {
|
||||
return callback(err, res ? res.trim() : undefined);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = AutoTypeHelper;
|
||||
|
|
Loading…
Reference in New Issue