CN105511904A - Method and apparatus for automatically updating shortcut window - Google Patents

Method and apparatus for automatically updating shortcut window Download PDF

Info

Publication number
CN105511904A
CN105511904A CN201510824224.9A CN201510824224A CN105511904A CN 105511904 A CN105511904 A CN 105511904A CN 201510824224 A CN201510824224 A CN 201510824224A CN 105511904 A CN105511904 A CN 105511904A
Authority
CN
China
Prior art keywords
login user
management file
window management
current
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510824224.9A
Other languages
Chinese (zh)
Other versions
CN105511904B (en
Inventor
陆舟
于华章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201510824224.9A priority Critical patent/CN105511904B/en
Publication of CN105511904A publication Critical patent/CN105511904A/en
Application granted granted Critical
Publication of CN105511904B publication Critical patent/CN105511904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a method and apparatus for automatically updating a shortcut window and belongs to the technical field of computers. The method comprises the steps of acquiring an account name of a login user, determining an absolute path of a shortcut window management file of the login user according to the account name, visiting the shortcut window management file of the login user according to the absolute path, updating the shortcut window management file of the login user according to application program information, re-reading the shortcut window management file of the login user, re-building system cache based on the read shortcut window management file, and re-starting the shortcut window. The apparatus comprises a first acquiring module, a second acquiring module, an updating module, a rebuilding module and a re-starting module. The beneficial effects of the method and apparatus for automatically updating the shortcut window are that application icons can be automatically added to the shortcut window or removed from the same during installation or uploading of the application program in the Mac OS system.

Description

The method of the quick window of a kind of automatic renewal and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of quick windowhood method of renewal and device automatically.
Background technology
MacOS is the graphical user interface based on Unix kernel of Apple's exploitation.Under MacOS operating system, application program is provided to feed back and realize multitask switching etc. in a jumble, for user to reduce desktop system, usually a Dock hurdle is set at edge, viewing area, represents corresponding application program by the icon arranged in Dock hurdle.But, install because MacOS is not provided in application program or unloads the function of application icon being added to Dock hurdle simultaneously or being removed from Dock hurdle by application icon, therefore exist in prior art because can not upgrade in time the user error that causes of Dock hurdle judges whether application program has installed or whether unloaded, thus cause user to repeat the installation of application program or the defect of unloading operation.
Summary of the invention
The object of the invention is the operation again avoiding user, method and the device of the quick window of a kind of automatic renewal are provided.
The present invention is achieved through the following technical solutions:
On the one hand, the invention provides the method for the quick window of a kind of automatic renewal, be specifically included in the installation of application program and/or uninstall process and perform following steps:
The name on account of step S1, acquisition login user;
Step S2, absolute path according to the quick window management file of described name on account determination login user;
Step S3, accessed the quick window management file of described login user by described absolute path, and according to the information updating of described application program the quick window management file of login user;
Step S4, again read the quick window management file of described login user, and according to the quick window management file reconstruction system cache read;
Step S5, restart quick window.
Particularly, in the installation process of application program, described according to the information updating of described application program the quick window management file of login user be specially: the information writing the application program of current installation in the quick window management file of described login user;
In the uninstall process of application program, described according to the information updating of described application program the quick window management file of login user be specially: delete information relevant to the application program of current unloading in the quick window management file of described login user.
In said method, described login user can be specially current login user; Correspondingly, described step S1 specifically comprises:
The title of step a1, acquisition Systematical control Terminal owner, obtains the account name of current login user;
Step a2, obtain the user profile of whole login user, from the user profile of whole login user, identify the user profile of current login user according to the account name of current login user;
Step a3, the name on account read in the user profile of current login user, obtain the name on account of current login user.
Or in said method, described step S1 specifically comprises: the name on account obtaining all visible login users; Wherein, described visible login user is specially visible login user in login window, comprises current login user; Described step S2 specifically comprises: the absolute path determining the quick window management file of each visible login user according to the name on account got respectively; Described step S3 specifically comprises: according to the quick window management file of each visible login user of the absolute path of the quick window management file of each visible login user access, and according to the quick window management file of each visible login user of the information updating of described application program; Described step S4 specifically comprises: the quick window management file again reading current login user, and according to the quick window management file reconstruction system cache read; Also comprise the name on account obtaining current login user before described step S4, obtain the absolute path of the quick window management file of current login user according to the name on account of described current login user;
Wherein, the name on account obtaining all visible login users specifically comprises:
Step b1, obtain the user profile of whole login user;
The user profile of the hiding login user comprised in the user profile of step b2, the whole login user of filtering, obtains the user profile of all visible login users; Described hiding login user is specially sightless login user in login window;
Step b3, the name on account read in the user profile of all visible login users, obtain the name on account of all visible login users.
On the other hand, the invention provides the device of the quick window of a kind of automatic renewal, comprising:
First acquisition module, for obtaining the name on account of login user;
Second acquisition module, for the absolute path of the quick window management file of name on account determination login user got according to described first acquisition module;
Update module, for the quick window management file of absolute path access login user determined according to described second acquisition module, and according to the information updating of current application program the quick window management file of login user;
Rebuild module, for reading the quick window management file of the described login user after the renewal of described update module, and according to the quick window management file reconstruction system cache read;
Restart module, for restarting quick window.
Particularly, when said apparatus is used for the installation process of application program, described update module specifically comprises:
First addressed location, the absolute path for determining according to described second acquisition module accesses the quick window management file of login user;
Writing unit, for writing the information of the application program of current installation in the quick window management file of described login user;
When described device is used for the uninstall process of application program, described update module specifically comprises:
Second addressed location, the absolute path for determining according to described second acquisition module accesses the quick window management file of login user;
Delete cells, for deleting information relevant to the application program of current unloading in the quick window management file of described login user.
In said apparatus, described first acquisition module is specifically for the name on account obtaining current login user, and correspondingly, described first acquisition module specifically comprises:
First acquiring unit, for obtaining the title of Systematical control Terminal owner, obtains the account name of current login user;
Second acquisition unit, for obtaining the user profile of whole login user;
3rd acquiring unit, identifies the user profile of current login user the user profile of the whole login users obtained from described second acquisition unit for the account name of the current login user got according to described first acquiring unit;
4th acquiring unit, for reading the name on account in the user profile of the current login user of described 3rd acquiring unit identification, obtains the name on account of current login user.
Or in said apparatus, described first acquisition module is specifically for the name on account that obtains all visible login users, and described visible login user is specially visible login user in login window, comprises current login user;
Described second acquisition module specifically for: the name on account got according to described first acquisition module determines the absolute path of the quick window management file of each visible login user respectively;
Described update module specifically for: the absolute path determined according to described second acquisition module accesses the quick window management file of each visible login user respectively, and according to the quick window management file of each visible login user of the information updating of current application program;
Described reconstruction module is specifically for the name on account obtaining current login user, the absolute path of the quick window management file of current login user is obtained according to the name on account of described current login user, read the quick window management file of current login user, and according to the quick window management file reconstruction system cache read;
Wherein, the first acquisition module specifically comprises:
5th acquiring unit, for obtaining the user profile of whole login user;
Filter element, the user profile of the hiding login user comprised in the user profile of the whole login users got for the 5th acquiring unit described in filtering, obtains the user profile of all visible login users; Described hiding login user is specially sightless login user in login window;
6th acquiring unit, for reading the name on account in the user profile of the whole visible login user that described filter element obtains, obtains the name on account of all visible login users.
Beneficial effect of the present invention is: the method and the device that the invention provides the quick window of a kind of automatic renewal, in the quick window of trend, add application icon or remove application icon from quick window when can be implemented in set up applications or unloading application program under MacOS system by this method, reaching and promote Consumer's Experience and prevent user from repeating because quick window does not upgrade in time to install or the problem of unloading application program.
Accompanying drawing explanation
In order to the clearer explanation embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow diagram of the quick window of a kind of automatic renewal that Fig. 1 provides for the embodiment of the present invention 1;
A kind of process flow diagram adding the figure calibration method of application program when set up applications in the quick window of trend that Fig. 2 provides for the embodiment of the present invention 2;
A kind of process flow diagram automatically removing the figure calibration method of application program when unloading application program from quick window that Fig. 3 provides for the embodiment of the present invention 4;
The block scheme of the device of the quick window of a kind of automatic renewal that Fig. 4 provides for the embodiment of the present invention 6.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides the method for the quick window of a kind of automatic renewal, as shown in Figure 1, specifically comprises:
The name on account of step S1, acquisition login user;
Step S2, absolute path according to the quick window management file of described name on account determination login user;
Step S3, accessed the quick window management file of described login user by described absolute path, and according to the information updating of described application program the quick window management file of login user;
Step S4, again read the quick window management file of described login user, and according to the quick window management file reconstruction system cache read;
Step S5, restart quick window.
Embodiment 2
The embodiment of the present invention provides a kind of figure calibration method adding application program when set up applications in the quick window of trend, as shown in Figure 2, specifically comprises:
Step 101, obtain the name on account of current login user;
In various embodiments of the present invention, the name on account obtaining current login user can specifically comprise:
Step a1, acquisition Systematical control terminal (/dev/console) possessory title, obtain the account name of current login user;
Step a2, obtain the user profile of whole login user;
Particularly, user profile comprises account name (name), user ID (uid), group ID (gid) and name on account (dir), and wherein, name on account (dir) is also referred to as master catalogue;
Step a3, from the user profile of whole login user, identify the user profile of current login user according to the account name of current login user;
Particularly, step a3 specifically comprises: identify the user profile comprising the account name of current login user, obtain the user profile of current login user;
Step a4, the name on account read in the user profile of current login user, obtain the name on account of current login user;
It should be noted that, in the MacOS system of below X version, the name on account acquiescence of login user is identical with the account name of login user, but allow login user to revise its name on account, therefore in the MacOS system of below X version, the account name of login user may be different with name on account, and in the MacOS system of X and above version, name on account and its account name of login user are corresponding consistent and do not allow login user to revise, therefore in the MacOS system of X and above version, the account name of login user and name on account must be identical, so when method provided by the invention is applied to the MacOS system of X and above version, the name on account of current login user can be obtained by the account name obtaining current login user.
Step 102, obtain the absolute path of the quick window management file of current login user according to the name on account of current login user;
Particularly, under MacOS system, the quick window of login user is by quick window management file maintenance, the quick window of different login user by different quick window management file maintenance, under these quick window management files are stored in a path relevant with the name on account of each login user respectively;
Particularly, quick window management file is specially com.apple.dock.plist file, and the absolute path of quick window management file is :/Users/ name on account/Library/Preferences/com.apple.dock.plist.
Such as, the name on account of the current login user got in the present embodiment step 101 is David, determines that the absolute path of the quick window management file of current login user is :/Users/David/Library/Preferences/com.apple.dock.plist in step 102 according to the name on account David of current login user.
Step 103, access the quick window management file of current login user according to the absolute path of the quick window management file of current login user;
Step 104, judge current login user quick window management file in whether comprise the information of the application program of current installation, be perform step 106, otherwise perform step 105;
Preferably, judge that the information whether comprising the application program of current installation in the quick window management file of current login user can be specially: the identifier judging whether to comprise in the quick window management file of current login user the application program of current installation;
Particularly, if comprise the identifier of the application program of current installation in the quick window management file of current login user, then the quick window management file of current login user is revised, namely the information of the application program of current installation has been written in the quick window management file of current login user, but this amendment may enter into force and also may not yet come into force, if this amendment enters into force, then the icon of the application program of current installation has been added in the quick window of current login user, if this amendment not yet comes into force, then the icon of the application program of current installation is not yet added in the quick window of current login user, if there is not the identifier of the application program of current installation in the quick window management file of current login user, then the quick window management file of current login user is not yet revised, and the icon of the application program of current installation is also not yet added in the quick window of current login user, the quick window of the current login user described in the present embodiment and the quick window of the current display of system.
Step 105, in the quick window management file of current login user, write the information of the application program of current installation, perform step 106;
In embodiment provided by the invention, the information writing the application program of current installation in the quick window management file of current login user can specifically comprise: in the quick window management file of current login user, write the application program of current installation identifier and installation path;
Further, in the quick window management file of current login user, write the application program of current installation identifier and installation path can specifically comprise: in the quick window management File of current login user, store the array (persistent-apps) of application message predeterminated position or default location create a dictionary, identifier (bundle-identifier) and word typical data---the tile data (tile-data) of the application program of current installation is write in described dictionary, word typical data is write in tile-data---file data (file-data), the installation path (_ CFURLString) of the application program of current installation is write in file-data,
Further, the information writing the application program of current installation in the quick window management file of current login user can also comprise that to write in the following information of the application program of current installation in the quick window management file of current login user one or more:
Global unique identification (GUID)
Tile form (tile-type)
Additional menu (dock-extra)
File layout (file-type)
Male parent amendment date (parent-mod-date)
File label (file-label)
File modified date (file-mod-date)
Wherein, GUID, tile-type, file-label and file-mod-date are specifically written in the dictionary of the above-mentioned predeterminated position storing the array persistent-apps of the information of application program in current quick window management file or default location establishment, and dock-extra, file-type, parent-mod-date are specifically written in the tile-data write in the dictionary of the above-mentioned predeterminated position storing the array persistent-apps of the information of application program in current quick window management file or default location establishment.
Step 106, again read the quick window management file of current login user, according to the quick window management file reconstruction system cache read;
In each embodiment provided by the invention, again the quick window management file of current login user is read, according to the quick window management file reconstruction system cache read, can by realizing according to the absolute path run system command Defaults of the quick window management file of current login user.
Step 107, restart quick window.
In the technical scheme that the present embodiment provides, when restarting quick window, system shows quick window by according to current system cache, due in step 106 according to the quick window management file reconstruction of current login user of again reading system cache, therefore the quick window management file of current system buffer memory is the quick window management file of the current login user of the information of the application program being written with current installation, therefore the icon of the application program of current installation will be comprised in the quick window after restarting, thus realize the renewal of the quick window of current login user.
Embodiment 3
The embodiment of the present invention provides a kind of figure calibration method adding application program when set up applications in the quick window of trend, visible login user described in the present embodiment is specially at the visible login user of login window, and hiding login user is specially at the sightless login user of login window.Described method specifically comprises:
The name on account of step 301, the whole visible login user of acquisition;
In embodiment provided by the invention, the name on account obtaining all visible login users can specifically comprise:
Step b1, obtain the user profile of whole login user;
Particularly, user profile comprises account name (name), user ID (uid), group ID (gid) and name on account (dir), and wherein name on account (dir) is also referred to as user.home;
The user profile of the hiding login user comprised in the user profile of step b2, the whole login user of filtering, obtains the user profile of all visible login users;
Particularly, step b2 can specifically comprise: the user profile that in the user profile of the whole login user of filtering, user ID is greater than 500, obtains the user profile of all visible login users;
Step b3, the name on account read in the user profile of all visible login users, obtain the name on account of all visible login users.
Step 302, obtain the absolute path of the quick window management file of each visible login user respectively according to the name on account of each visible login user;
Particularly, quick window management file is specially com.apple.dock.plist file, and the absolute path of the quick window management file of login user is: the name on account/Library/Preferences/com.apple.dock.plist of/Users/ login user;
Such as, in the present embodiment, the name on account of the whole visible login user that step 301 gets is James and Jones, then in step 302, according to James and Jones, to obtain name on account be the absolute path of the quick window management file of the visible login user of James and name on account is the absolute path of the quick window management file of the visible login user of Jones respectively, the former is specially :/Users/James/Library/Preferences/com.apple.dock.plist, the latter is concrete :/Users/Jones/Library/Preferences/com.apple.dock.plist.
Step 303, judge the information whether comprising the application program of current installation in the quick window management file of each visible login user according to the quick window management file of each visible login user of the absolute path of the quick window management file of each visible login user access respectively, do not comprise to each the information writing the application program of current installation in the quick window management file of the information of the application program of current installation;
Particularly, judge the method whether comprising the information of the application program of current installation in the quick window management file of each visible login user, can whether to comprise the method for the information of the application program of current installation in the quick window management file of current login user identical with judging described in embodiment 2, do not repeat them here; The method writing the information of the application program of current installation in the quick window management file of the information of the application program of current installation is not comprised to each, can be identical with the method for the information of the application program of current installation that writes in the quick window management file of current login user described in embodiment 2, also repeat no more at this.
Step 304, again read the quick window management file of current login user, according to the quick window management file reconstruction system cache of current login user, restart quick window.
In the present embodiment, also comprise before performing step 304: the name on account obtaining current login user, obtains the absolute path of the quick window management file of current login user according to the name on account of current login user.
The technical scheme that the present embodiment provides, in the installation process of application program, the quick window management file of whole visible login user is all upgraded, upgrade rear according to the quick window management file reconstruction system cache after the renewal of current login user, after restarting quick window, system will belong to the quick window of current login user according to the display of current system cache, when switching to other visible login users, system can automatically according to the quick window management file reconstruction system cache of the login user after switching, the quick window of the login user after then belonging to switching according to system cache display at that time, realize the renewal of the quick window of all visible login users.
Embodiment 4
The embodiment of the present invention provides a kind of figure calibration method automatically removing application program when unloading application program from quick window, as shown in Figure 3, specifically comprises:
Step 201, obtain the name on account of current login user;
Step 202, obtain the absolute path of the quick window management file of current login user according to the name on account of current login user;
Step 203, access the quick window management file of current login user according to the absolute path of the quick window management file of current login user;
Step 204, judge current login user quick window management file in whether comprise the information of the application program of current unloading, be perform step 205, otherwise perform step 207;
Preferably, judge that the information whether comprising the application program of current unloading in the quick window management file of current login user can specifically comprise:
Step 204-1, read successively according to the identifier of storage order by the whole application programs in the quick window management file of current login user and write temporal cache;
Particularly, by identical with the storage order of the identifier of application program in quick window management file for the identifier of the application program in the quick window management file write write sequence of temporal cache;
Step 204-2, judge the identifier of the application program whether comprising current unloading in temporal cache, in the quick window management file of current login user, comprise the information of the application program of current unloading, perform step 205, otherwise there is not the information of the application program of current unloading in the quick window management file of current login user, perform step 207;
Step 205, obtain the memory location of information in the quick window management file of current login user of the application program of current unloading;
Preferably, the memory location of information in the quick window management file of current login user obtaining the application program of current unloading can specifically comprise: according to the memory location of information in the quick window management file of current login user of the application program of the current unloading of the position acquisition of identifier in temporal cache of the application program of current unloading.
Such as, the 5th identifier in temporal cache is the identifier of the application program of current unloading, then the memory location of information in the quick window management file of current login user of the application program of current unloading is 5.
Step 206, delete the information of the application program of the current unloading in the quick window management file of current login user according to the memory location of information in the quick window management file of current login user of the application program of current unloading, perform step 207;
Preferably, the information of deleting the application program of the current unloading in the quick window management file of current login user according to the memory location of information in the quick window management file of current login user of the application program of current unloading can specifically comprise: the memory location of information in the quick window management file of current login user according to the application program of current unloading is searched and delete the dictionary that have recorded the information of the application program of current unloading in the quick window management file of current login user;
Such as, the memory location of information in the quick window management file of current login user of the application program of current unloading is 5, then delete in the quick window management file of current login user the 5th dictionary stored in the array persistent-apps of application message.
Step 207, again read the quick window management file of current login user, according to the quick window management file reconstruction system cache read;
Step 208, restart quick window.
In the technical scheme that the present embodiment provides, when restarting quick window, system shows quick window by according to current system cache, due in step 207 according to the quick window management file reconstruction of current login user of again reading system cache, therefore the quick window management file of current system buffer memory is the quick window management file of the current login user of the information of the application program deleting current unloading, therefore the icon of the application program of current installation will no longer be comprised in the quick window after restarting, thus realize the renewal of the quick window of current login user.
Embodiment 5
The embodiment of the present invention provides a kind of figure calibration method automatically removing application program when unloading application program from quick window, in the present embodiment, the visible login user of the following stated is specially at the visible login user of login window, and described hiding login user is specially at the sightless login user of login window; Described method specifically comprises:
The name on account of step 401, the whole visible login user of acquisition;
Step 402, obtain the absolute path of the quick window management file of each visible login user respectively according to the name on account of each visible login user;
Step 403, respectively according to the quick window management file of each visible login user of the absolute path of the quick window management file of each visible login user access and judge each visible login user quick window management file in whether comprise the information of the application program of current unloading, and delete and eachly comprise information relevant to the application program of current unloading in the quick window management file of the information of the application program of current unloading;
In the present embodiment, judge the method whether comprising the information of the application program of current unloading in the quick window management file of each visible login user, can whether to comprise the method for the information of the application program of current unloading in the quick window management file of current login user identical with judging described in embodiment 4, do not repeat them here;
In the present embodiment, delete the method for the information of the application program of each current unloading comprised in the quick window management file of the information of the application program of current unloading, can be identical with the method for the information of the application program of the current unloading in the quick window management file of the current login user of deletion described in embodiment 4, also repeat no more at this;
In the present embodiment, also the information of the application program obtaining current unloading is comprised in each memory location comprised in the quick window management file of the information of the application program of current unloading before deleting the information of the application program of each current unloading comprised in the quick window management file of the information of the application program of current unloading, its acquisition methods can be identical with the method for the memory location of the information of the application program of the current unloading of acquisition described in embodiment 4 in the quick window management file of current login user, repeats no more equally at this.
Step 404, again read the quick window management file of current login user, according to the quick window management file reconstruction system cache of current login user, restart quick window.
In the present embodiment, also comprise before performing step 404: the name on account obtaining current login user, obtains the absolute path of the quick window management file of current login user according to the name on account of current login user.
The technical scheme that the present embodiment provides, in the uninstall process of application program, the quick window management file of whole visible login user is all upgraded, upgrade rear according to the quick window management file reconstruction system cache after the renewal of current login user, after restarting quick window, system will belong to the quick window of current login user according to the display of current system cache, when switching to other visible login users, system can automatically according to the quick window management file reconstruction system cache of the login user after switching, the quick window of the login user after then belonging to switching according to system cache display at that time, realize the renewal of the quick window of all visible login users.
Embodiment 6
The present embodiment provides the device of the quick window of a kind of automatic renewal, as shown in Figure 4, specifically comprises:
First acquisition module 1, for obtaining the name on account of login user;
Second acquisition module 2, for the absolute path of the quick window management file of name on account determination login user got according to the first acquisition module 1;
Update module 3, for the quick window management file of absolute path access login user determined according to the second acquisition module 2, and according to the information updating of current application program the quick window management file of login user;
Rebuild module 4, for reading the quick window management file of the described login user after update module 3 renewal, and according to the quick window management file reconstruction system cache read;
Restart module 5, for restarting quick window.
In the present embodiment, described first acquisition module 1 is specifically for the name on account obtaining current login user;
Further, described first acquisition module 1 specifically comprises:
First acquiring unit, for obtaining the title of Systematical control Terminal owner, obtains the account name of current login user;
Second acquisition unit, for obtaining the user profile of whole login user;
3rd acquiring unit, identifies the user profile of current login user the user profile of the whole login users obtained from second acquisition unit for the account name of the current login user got according to the first acquiring unit;
4th acquiring unit, for reading the name on account in the user profile of the current login user of the 3rd acquiring unit identification, obtains the name on account of current login user.
Or in the present embodiment, described first acquisition module 1 is specifically for the name on account that obtains all visible login users, and described visible login user is specially visible login user in login window, comprises current login user; Correspondingly:
Described second acquisition module 2 specifically for: the name on account got according to the first acquisition module 1 determines the absolute path of the quick window management file of each visible login user respectively;
Described update module 3 specifically for: the absolute path determined according to the second acquisition module 2 accesses the quick window management file of each visible login user respectively, and according to the quick window management file of each visible login user of the information updating of current application program;
Described reconstruction module 4 is specifically for the name on account obtaining current login user, the absolute path of the quick window management file of current login user is obtained according to the name on account of described current login user, read the quick window management file of current login user, and according to the quick window management file reconstruction system cache read;
Further, described first acquisition module 1 specifically comprises:
5th acquiring unit, for obtaining the user profile of whole login user;
Filter element, the user profile of the hiding login user comprised in the user profile of the whole login users got for the 5th acquiring unit described in filtering, obtains the user profile of all visible login users; Described hiding login user is specially sightless login user in login window;
6th acquiring unit, for reading the name on account in the user profile of the whole visible login user that described filter element obtains, obtains the name on account of all visible login users
In the present embodiment, when said apparatus is used for the installation process of application program:
Described update module 3 specifically comprises:
First addressed location, the absolute path for determining according to the second acquisition module 2 accesses the quick window management file of login user;
Writing unit, for writing the information of the application program of current installation in the quick window management file of login user.
Further, described update module 3 can also comprise: the first judging unit, for judging the information whether comprising the application program of current installation in quick window management file; Correspondingly:
Said write unit specifically for: when the first judging unit judges not comprise the information of the application program of current installation in described quick window management file, in the quick window management file of described login user, write the information of the application program of current installation; Preferably, the information of the application program of the current installation write in the quick window management file of described login user comprises: the identifier of the application program of current installation and installation path;
Described reconstruction module 4 specifically for: when the first judging unit judges to comprise the information of the application program of current installation in described quick window management file, or after writing unit writes the information of the application program of current installation in the quick window management file of described login user, again the quick window management file of the described login user after the renewal of described update module 3 is read, and according to the quick window management file reconstruction system cache read.
Further, described first judging unit specifically for: judge the identifier whether comprising the application program of current installation in the quick window management file of described login user, be in the quick window management file of described login user, comprise the information of the application program of current installation, otherwise do not comprise the information of the application program of current installation in the quick window management file of described login user.
In the present embodiment, when said apparatus is used for the uninstall process of application program:
Described update module 3 specifically comprises:
Second addressed location, the absolute path for determining according to the second acquisition module 2 accesses the quick window management file of login user;
Delete cells, for deleting information relevant to the application program of current unloading in the quick window management file of described login user.
Further, described update module 3 also comprises: the second judging unit, for judge described login user quick window management file in whether comprise the information relevant to the application program of current unloading; Correspondingly:
Described delete cells, specifically for judge described login user when the second judging unit quick window management file in comprise the information relevant to the application program of current unloading time, delete information relevant to the application program of current unloading in described quick window management file;
Described reconstruction module 4, specifically for judge described login user when the second judging unit quick window management file in do not comprise the information relevant to the application program of current unloading time, or after delete cells deletes information relevant to the application program of current unloading in described quick window management file, read the quick window management file of the described login user after update module 3 renewal, and according to the quick window management file reconstruction system cache read.
Further, described second judging unit specifically for: read successively according to the identifier of storage order by the application program in the quick window management file of described login user and write temporal cache, judge the identifier of the application program whether comprising current unloading in described temporal cache, be in the quick window management file of described login user, comprise the information of the application program of current unloading, otherwise do not comprise the information of the application program of current unloading in the quick window management file of described login user.
Again further, described delete cells specifically for: according to the memory location of information in the quick window management file of described login user of the application program of the current unloading of the position acquisition of identifier in described temporal cache of the application program of current unloading, delete the corresponding dictionary in the quick window management file of described login user according to the memory location of information in the quick window management file of described login user of the application program of described current unloading.
Above-described embodiment is the present invention's more preferably embodiment, and the usual change that those skilled in the art carries out within the scope of technical solution of the present invention and replacement all should be included in protection scope of the present invention.

Claims (26)

1. automatically upgrade a method for quick window, it is characterized in that, be included in the installation of application program and/or uninstall process and perform following steps:
The name on account of step S1, acquisition login user;
Step S2, absolute path according to the quick window management file of described name on account determination login user;
Step S3, accessed the quick window management file of described login user by described absolute path, and according to the information updating of described application program the quick window management file of login user;
Step S4, again read the quick window management file of described login user, and according to the quick window management file reconstruction system cache read;
Step S5, restart quick window.
2. the method for claim 1, it is characterized in that, in the installation process of application program, described according to the information updating of described application program the quick window management file of login user be specially: the information writing the application program of current installation in the quick window management file of described login user.
3. method as claimed in claim 2, it is characterized in that, described in the quick window management file of described login user, write the information of the application program of current installation before, also comprise: the information judging whether to comprise in the quick window management file of described login user the application program of current installation, be then directly perform described step S4, otherwise perform the described information writing the application program of current installation in the quick window management file of described login user.
4. method as claimed in claim 3, it is characterized in that, describedly judge that the information whether comprising the application program of current installation in the quick window management file of described login user specifically comprises: the identifier judging whether to comprise in the quick window management file of described login user the application program of current installation, be in the quick window management file of described login user, comprise the information of the application program of current installation, otherwise do not comprise the information of the application program of current installation in the quick window management file of described login user.
5. method as claimed in claim 2, it is characterized in that, the described information writing the application program of current installation in the quick window management file of described login user specifically comprises: in the quick window management file of described login user, write the application program of current installation identifier and installation path.
6. the method for claim 1, it is characterized in that, in the uninstall process of application program, described according to the information updating of described application program the quick window management file of login user be specially: delete information relevant to the application program of current unloading in the quick window management file of described login user.
7. method as claimed in claim 6, it is characterized in that, before information relevant to the application program of current unloading in the quick window management file of the described login user of described deletion, also comprise: judge whether comprise the information relevant to the application program of current unloading in the quick window management file of described login user, be perform information relevant to the application program of current unloading in the quick window management file of the described login user of described deletion, otherwise directly perform described step S4.
8. method as claimed in claim 7, it is characterized in that, describedly judge that whether comprising the information relevant to the application program of current unloading in the quick window management file of described login user specifically comprises: read successively according to the identifier of storage order by the application program in the quick window management file of described login user and write temporal cache, judge the identifier of the application program whether comprising current unloading in described temporal cache, comprise the information relevant to the application program of current unloading in the quick window management file of described login user, otherwise do not comprise the information relevant to the application program of current unloading in the quick window management file of described login user.
9. method as claimed in claim 8, it is characterized in that, when comprising the identifier of application program in the quick window management file judging described login user, also comprise: according to the memory location of information in the quick window management file of described login user of the application program of the current unloading of the position acquisition of identifier in described temporal cache of the application program of current unloading;
In the quick window management file of the described login user of described deletion, the information relevant to the application program of current unloading specifically comprises: delete the corresponding dictionary in the quick window management file of described login user according to the memory location of information in the quick window management file of described login user of the application program of described current unloading.
10. the method for claim 1, is characterized in that, described login user is specially current login user.
11. methods as claimed in claim 10, it is characterized in that, described step S1 specifically comprises:
The title of step a1, acquisition Systematical control Terminal owner, obtains the account name of current login user;
Step a2, obtain the user profile of whole login user, from the user profile of whole login user, identify the user profile of current login user according to the account name of current login user;
Step a3, the name on account read in the user profile of current login user, obtain the name on account of current login user.
12. the method for claim 1, is characterized in that, described step S1 specifically comprises: the name on account obtaining all visible login users; Wherein, described visible login user is specially visible login user in login window, comprises current login user;
Described step S2 specifically comprises: the absolute path determining the quick window management file of each visible login user according to the name on account got respectively;
Described step S3 specifically comprises: according to the quick window management file of each visible login user of the absolute path of the quick window management file of each visible login user access, and according to the quick window management file of each visible login user of the information updating of described application program;
Described step S4 specifically comprises: the quick window management file again reading current login user, and according to the quick window management file reconstruction system cache read;
Also comprise the name on account obtaining current login user before described step S4, obtain the absolute path of the quick window management file of current login user according to the name on account of described current login user.
13. methods as claimed in claim 12, is characterized in that, the name on account of the whole visible login user of described acquisition specifically comprises:
Step b1, obtain the user profile of whole login user;
The user profile of the hiding login user comprised in the user profile of step b2, the whole login user of filtering, obtains the user profile of all visible login users; Described hiding login user is specially sightless login user in login window;
Step b3, the name on account read in the user profile of all visible login users, obtain the name on account of all visible login users.
14. 1 kinds of automatic devices upgrading quick window, is characterized in that, comprising:
First acquisition module, for obtaining the name on account of login user;
Second acquisition module, for the absolute path of the quick window management file of name on account determination login user got according to described first acquisition module;
Update module, for the quick window management file of absolute path access login user determined according to described second acquisition module, and according to the information updating of current application program the quick window management file of login user;
Rebuild module, for reading the quick window management file of the described login user after the renewal of described update module, and according to the quick window management file reconstruction system cache read;
Restart module, for restarting quick window.
15. devices as claimed in claim 14, is characterized in that, when described device is used for the installation process of application program, described update module specifically comprises:
First addressed location, the absolute path for determining according to described second acquisition module accesses the quick window management file of login user;
Writing unit, for writing the information of the application program of current installation in the quick window management file of described login user.
16. devices as claimed in claim 15, it is characterized in that, described update module also comprises: the first judging unit, for judging the information whether comprising the application program of current installation in described quick window management file;
Said write unit specifically for: when described first judging unit judges not comprise the information of the application program of current installation in described quick window management file, in the quick window management file of described login user, write the information of the application program of current installation;
Described reconstruction module specifically for: when described first judging unit judges to comprise the information of the application program of current installation in described quick window management file, or after said write unit writes the information of the application program of current installation in the quick window management file of described login user, again the quick window management file of the described login user after the renewal of described update module is read, and according to the quick window management file reconstruction system cache read.
17. devices as claimed in claim 16, it is characterized in that, described judging unit specifically for: judge the identifier whether comprising the application program of current installation in the quick window management file of described login user, be in the quick window management file of described login user, comprise the information of the application program of current installation, otherwise do not comprise the information of the application program of current installation in the quick window management file of described login user.
18. devices as claimed in claim 15, is characterized in that, said write unit is specifically for the identifier and the installation path that write the application program of current installation in the quick window management file of described login user.
19. devices as claimed in claim 14, is characterized in that, when described device is used for the uninstall process of application program, described update module specifically comprises:
Second addressed location, the absolute path for determining according to described second acquisition module accesses the quick window management file of login user;
Delete cells, for deleting information relevant to the application program of current unloading in the quick window management file of described login user.
20. devices as claimed in claim 19, it is characterized in that, described update module also comprises: the second judging unit, for judge described login user quick window management file in whether comprise the information relevant to the application program of current unloading;
Described delete cells, specifically for judge described login user when described second judging unit quick window management file in comprise the information relevant to the application program of current unloading time, delete information relevant to the application program of current unloading in described quick window management file;
Described reconstruction module, specifically for judge described login user when described second judging unit quick window management file in do not comprise the information relevant to the application program of current unloading time, or after described delete cells deletes information relevant to the application program of current unloading in described quick window management file, read the quick window management file of the described login user after update module renewal, and according to the quick window management file reconstruction system cache read.
21. devices as claimed in claim 20, it is characterized in that, described judging unit specifically for: read successively according to the identifier of storage order by the application program in the quick window management file of described login user and write temporal cache, judge the identifier of the application program whether comprising current unloading in described temporal cache, be comprise the information relevant to the application program of current unloading in the quick window management file of described login user, otherwise do not comprise the information relevant to the application program of current unloading in the quick window management file of described login user.
22. devices as claimed in claim 21, it is characterized in that, described delete cells specifically for: according to the memory location of information in the quick window management file of described login user of the application program of the current unloading of the position acquisition of identifier in described temporal cache of the application program of current unloading, delete the corresponding dictionary in the quick window management file of described login user according to the memory location of information in the quick window management file of described login user of the application program of described current unloading.
23. devices as claimed in claim 14, is characterized in that, described first acquisition module is specifically for the name on account obtaining current login user.
24. devices as claimed in claim 23, it is characterized in that, described first acquisition module specifically comprises:
First acquiring unit, for obtaining the title of Systematical control Terminal owner, obtains the account name of current login user;
Second acquisition unit, for obtaining the user profile of whole login user;
3rd acquiring unit, identifies the user profile of current login user the user profile of the whole login users obtained from described second acquisition unit for the account name of the current login user got according to described first acquiring unit;
4th acquiring unit, for reading the name on account in the user profile of the current login user of described 3rd acquiring unit identification, obtains the name on account of current login user.
25. devices as claimed in claim 14, it is characterized in that, described first acquisition module is specifically for the name on account that obtains all visible login users, and described visible login user is specially visible login user in login window, comprises current login user;
Described second acquisition module specifically for: the name on account got according to described first acquisition module determines the absolute path of the quick window management file of each visible login user respectively;
Described update module specifically for: the absolute path determined according to described second acquisition module accesses the quick window management file of each visible login user respectively, and according to the quick window management file of each visible login user of the information updating of current application program;
Described reconstruction module is specifically for the name on account obtaining current login user, the absolute path of the quick window management file of current login user is obtained according to the name on account of described current login user, read the quick window management file of current login user, and according to the quick window management file reconstruction system cache read.
26. devices as claimed in claim 25, it is characterized in that, described first acquisition module specifically comprises:
5th acquiring unit, for obtaining the user profile of whole login user;
Filter element, the user profile of the hiding login user comprised in the user profile of the whole login users got for the 5th acquiring unit described in filtering, obtains the user profile of all visible login users; Described hiding login user is specially sightless login user in login window;
6th acquiring unit, for reading the name on account in the user profile of the whole visible login user that described filter element obtains, obtains the name on account of all visible login users.
CN201510824224.9A 2015-11-24 2015-11-24 A kind of method and device automatically updating quick window Active CN105511904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510824224.9A CN105511904B (en) 2015-11-24 2015-11-24 A kind of method and device automatically updating quick window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510824224.9A CN105511904B (en) 2015-11-24 2015-11-24 A kind of method and device automatically updating quick window

Publications (2)

Publication Number Publication Date
CN105511904A true CN105511904A (en) 2016-04-20
CN105511904B CN105511904B (en) 2018-10-12

Family

ID=55719911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510824224.9A Active CN105511904B (en) 2015-11-24 2015-11-24 A kind of method and device automatically updating quick window

Country Status (1)

Country Link
CN (1) CN105511904B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775669A (en) * 2016-11-30 2017-05-31 深圳天珑无线科技有限公司 For the menu setting method and its device of intelligent terminal
CN109859572A (en) * 2019-02-19 2019-06-07 深圳点猫科技有限公司 A kind of lesson application method and teacher's terminal based on education cloud platform
CN114265659A (en) * 2021-12-27 2022-04-01 飞天诚信科技股份有限公司 Method and device for displaying popup frame by iOS system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868588A (en) * 2011-07-07 2013-01-09 腾讯科技(深圳)有限公司 Method and device for implementing dockbar
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons
CN103677883A (en) * 2012-09-20 2014-03-26 腾讯科技(深圳)有限公司 Method and device for displaying dock icon

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868588A (en) * 2011-07-07 2013-01-09 腾讯科技(深圳)有限公司 Method and device for implementing dockbar
CN103677883A (en) * 2012-09-20 2014-03-26 腾讯科技(深圳)有限公司 Method and device for displaying dock icon
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
达斯WILL: "Dock的那些小技巧", 《HTTPS://BBS.FENG.COM/READ-HTM-TID-8327960.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775669A (en) * 2016-11-30 2017-05-31 深圳天珑无线科技有限公司 For the menu setting method and its device of intelligent terminal
CN109859572A (en) * 2019-02-19 2019-06-07 深圳点猫科技有限公司 A kind of lesson application method and teacher's terminal based on education cloud platform
CN114265659A (en) * 2021-12-27 2022-04-01 飞天诚信科技股份有限公司 Method and device for displaying popup frame by iOS system

Also Published As

Publication number Publication date
CN105511904B (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN102165422B (en) Firmware update device and method
US8286154B2 (en) Apparatus and method for live loading of version upgrades in a process control environment
TWI505087B (en) System reset
CN103227812B (en) Smart machine is supported method for down loading and the device of breakpoint transmission
CN102629206B (en) A kind of method for updating embedded system software and system
US20110093437A1 (en) Method and system for generating a space-efficient snapshot or snapclone of logical disks
CN105867947A (en) Data processing method and device after upgrades of preset applications
KR20110098567A (en) Method and apparatus for generating minimal boot image
CN103324507A (en) Method and apparatus for updating terminal preset application program
CN104572229A (en) Firmware upgrade method and firmware upgrade device for embedded system
CN108241550B (en) Backup and restoration method for operating system
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
EP1879109A1 (en) Information processing device, program, and storage medium
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
KR100923161B1 (en) Portable storage apparatus for providing working environment migration service, and method for providing working environment migration service in that
CN105511904A (en) Method and apparatus for automatically updating shortcut window
CN104598281A (en) Method for upgrading system of electronic device
CN102760063A (en) File loading method and device
JP2008009659A (en) Device connecting method, host equipment, and program for connecting device equipment
EP3660671A1 (en) Ndis device configuration method and apparatus, and computer storage medium
US8799616B2 (en) Method and system for preferred CPU binding on virtual partitions
US7702890B2 (en) Information processing apparatus and program
CN112182652B (en) Method and device for protecting data partition from being fully written, storage medium and terminal equipment
CN115586992A (en) System mirror image backup and restoration method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant