Where may setting about last opened window style be stored?











up vote
0
down vote

favorite












I make an app with Nativefier, and I want it to open minimized on start. Unfortunately, not all app honor the requested style, so either using PowerShell command



Start-Process -WindowStyle Minimized 'D:GitHubWeb-wrapperGoogle Keep-win32-ia32Google Keep.exe'


or setting its property as minimized





won't work.



One workaround solution is via regedit (see the second link), but as a standalone app, there is no way to know. So I guess the only way to find the setting that force it to start minimized is via its source code, but it doesn't seem to have any config file.



Do you know how to set it starts minimized with PowerShell? And in general, where may such setting be stored?










share|improve this question
























  • Windows has API for that, use WinExec().
    – Biswapriyo
    Nov 23 at 15:05










  • Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
    – Ooker
    Nov 23 at 16:28















up vote
0
down vote

favorite












I make an app with Nativefier, and I want it to open minimized on start. Unfortunately, not all app honor the requested style, so either using PowerShell command



Start-Process -WindowStyle Minimized 'D:GitHubWeb-wrapperGoogle Keep-win32-ia32Google Keep.exe'


or setting its property as minimized





won't work.



One workaround solution is via regedit (see the second link), but as a standalone app, there is no way to know. So I guess the only way to find the setting that force it to start minimized is via its source code, but it doesn't seem to have any config file.



Do you know how to set it starts minimized with PowerShell? And in general, where may such setting be stored?










share|improve this question
























  • Windows has API for that, use WinExec().
    – Biswapriyo
    Nov 23 at 15:05










  • Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
    – Ooker
    Nov 23 at 16:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I make an app with Nativefier, and I want it to open minimized on start. Unfortunately, not all app honor the requested style, so either using PowerShell command



Start-Process -WindowStyle Minimized 'D:GitHubWeb-wrapperGoogle Keep-win32-ia32Google Keep.exe'


or setting its property as minimized





won't work.



One workaround solution is via regedit (see the second link), but as a standalone app, there is no way to know. So I guess the only way to find the setting that force it to start minimized is via its source code, but it doesn't seem to have any config file.



Do you know how to set it starts minimized with PowerShell? And in general, where may such setting be stored?










share|improve this question















I make an app with Nativefier, and I want it to open minimized on start. Unfortunately, not all app honor the requested style, so either using PowerShell command



Start-Process -WindowStyle Minimized 'D:GitHubWeb-wrapperGoogle Keep-win32-ia32Google Keep.exe'


or setting its property as minimized





won't work.



One workaround solution is via regedit (see the second link), but as a standalone app, there is no way to know. So I guess the only way to find the setting that force it to start minimized is via its source code, but it doesn't seem to have any config file.



Do you know how to set it starts minimized with PowerShell? And in general, where may such setting be stored?







powershell window styles






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 22 hours ago

























asked Nov 23 at 14:46









Ooker

7001428




7001428












  • Windows has API for that, use WinExec().
    – Biswapriyo
    Nov 23 at 15:05










  • Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
    – Ooker
    Nov 23 at 16:28


















  • Windows has API for that, use WinExec().
    – Biswapriyo
    Nov 23 at 15:05










  • Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
    – Ooker
    Nov 23 at 16:28
















Windows has API for that, use WinExec().
– Biswapriyo
Nov 23 at 15:05




Windows has API for that, use WinExec().
– Biswapriyo
Nov 23 at 15:05












Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
– Ooker
Nov 23 at 16:28




Is it possible for you to make it an answer? It seems that I need to use C# to call it, and it's basically out of my ability
– Ooker
Nov 23 at 16:28










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Fix #522 - Add --start-in-tray CLI flag to let app start in background
seems to solve your problem.



No documentation for it, but I guess you need to use the command :



nativefier --tray start-in-tray


Or maybe



nativefier --start-in-tray





share|improve this answer





















  • unfortunately, the code is still unmerged
    – Ooker
    22 hours ago












  • That explains why no documentation, but it will arrive.
    – harrymc
    21 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377823%2fwhere-may-setting-about-last-opened-window-style-be-stored%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Fix #522 - Add --start-in-tray CLI flag to let app start in background
seems to solve your problem.



No documentation for it, but I guess you need to use the command :



nativefier --tray start-in-tray


Or maybe



nativefier --start-in-tray





share|improve this answer





















  • unfortunately, the code is still unmerged
    – Ooker
    22 hours ago












  • That explains why no documentation, but it will arrive.
    – harrymc
    21 hours ago















up vote
1
down vote













Fix #522 - Add --start-in-tray CLI flag to let app start in background
seems to solve your problem.



No documentation for it, but I guess you need to use the command :



nativefier --tray start-in-tray


Or maybe



nativefier --start-in-tray





share|improve this answer





















  • unfortunately, the code is still unmerged
    – Ooker
    22 hours ago












  • That explains why no documentation, but it will arrive.
    – harrymc
    21 hours ago













up vote
1
down vote










up vote
1
down vote









Fix #522 - Add --start-in-tray CLI flag to let app start in background
seems to solve your problem.



No documentation for it, but I guess you need to use the command :



nativefier --tray start-in-tray


Or maybe



nativefier --start-in-tray





share|improve this answer












Fix #522 - Add --start-in-tray CLI flag to let app start in background
seems to solve your problem.



No documentation for it, but I guess you need to use the command :



nativefier --tray start-in-tray


Or maybe



nativefier --start-in-tray






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 at 18:46









harrymc

249k10257549




249k10257549












  • unfortunately, the code is still unmerged
    – Ooker
    22 hours ago












  • That explains why no documentation, but it will arrive.
    – harrymc
    21 hours ago


















  • unfortunately, the code is still unmerged
    – Ooker
    22 hours ago












  • That explains why no documentation, but it will arrive.
    – harrymc
    21 hours ago
















unfortunately, the code is still unmerged
– Ooker
22 hours ago






unfortunately, the code is still unmerged
– Ooker
22 hours ago














That explains why no documentation, but it will arrive.
– harrymc
21 hours ago




That explains why no documentation, but it will arrive.
– harrymc
21 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377823%2fwhere-may-setting-about-last-opened-window-style-be-stored%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?