I'm using google chrome with multiple email accounts and hence chrome users feature is so useful to me. It was easy for me to create shortcuts for every user in windows 10. But it seems difficult for me to open chrome in an account and then switching to the account which I want to use. It would be much helpful if the chrome users with their respective user pictures can be pinned in the dock. I'm using Pop OS 20.04 LTS. Are there any commands for enabling it? or any tricks?
First you need to navigate to chrome data directory, default is ${HOME}/.config/google-chrome. There you could find folders that stores different profiles, for instance Profile 1. Knowing directory names chrome can be executed with profile directory as follows:
google-chrome --profile-directory="Profile 1"
Do not use full path, give directory name only.
Knowing correct command create desired application launcher (I guess you can figure it out) and optionally put it to ${HOME}/.local/share/applications to access it from "start menu".
First you need to create a folder.desktop file in .local/share/applications.
There you can paste this code
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=google-chrome
Exec=google-chrome --profile-directory=PROFILE_NAME
Name[en_US]=Chrome-PROFILE_NAME
Name=Chrome-PROFILE_NAME
Icon=google-chrome
Replace PROFILE_NAME with your own profile name.
then right click the file and go to properties>permissions and allow execute file as program.
Now press windows button and search for your PROFILE_NAME.There you can see your profile name.Add that to your favorites and open that file.If chrome asks for setup your profile,set you profile for the first time and after that every time you click on that icon it will open your profile.
In this way you can create icons for multiple chrome profiles.
Related
I am working on Win 10 upgrade activity. As you know we can select application for file extension. So, those file will open on that app. e.g. html files only open in Chrome when user double click on that.
We can create XML file (DefaultAppAssociations.xml) and place it in C:\windows\system32
Now, I got the request to make one application default but let user decide if they want any other app. Is there any way to handle such things because defaultappassociations.xml will hard code this. Every time machine restart and it will set the same.
This is only possible as part of the operating system deployment or rather for newly created user profiles.
The command (official documentation):
Dism.exe /online /Import-DefaultAppAssociations:<path to exported xml>
However as I said you cannot alter existing profiles that way. Altering existing profiles in any way that is not the force via gpo is afaik not possible anymore because Microsoft does not want to allow it. A pretty stupid decision but at least you can tell whoever made the request that it is by MS design.
I'm not sure if this is the right site to be asking this. I have a program I made for Windows that essentially searches for and opens a folder via the file explorer. Right now, it's just a normal .exe that the user has pinned to their taskbar and will open a UI. I want to somehow program it so the user can install it and have it as a permanent widget on their taskbar, but I can't find any documentation or anything for adding anything to the taskbar. Is there any way to accomplish this or good resource I can study to figure this out?
After read that Greasemonkey recommends users to install Tampermonkey or Violentmonkey.
I've installed Tampermonkey and now I'm trying to transfer all my Greasemonkey 3.x scripts to be opened on Tampermonkey, but I can't find it's location or even how to do it.
I've read this question that says where and how it's located on Chrome, but where is it on Firefox 57+?
How can I transfer it?
PS: I'm expecting I won't need to update every userscript I have.
Based on derjanb comment I'm answering the question showing the steps I took to achieve the transfer of the userscripts.
Enter about:support on firefox address, then find and click open folder
Now find and open gm_scripts folder, click to search inside it and type .user.js, when the search finishes select all userscripts you want to transfer.
Now right click the selected files and choose Send To - Compressed (zipped) folder.
Once your zip file is created find it on Desktop or where it was created and open the Tampermonkey Dashboard
Go to utilities tab and on Zip select import, find your zip file and once you click open button, it should load
Finally a list with all scripts inside the zip should open, asking which one you desire to import. If you want all, just click import.
That should do it. Check it out on Installed userscripts tab.
How to export scripts from Greasemonkey to a zip file:
Click the Greasemonkey plugin
Click Export a backup...
Save file
How to import scripts to Tampermonkey from a zip file:
Click the Tampermonkey plugin
Click Dashboard
Navigate to Utilities tab
Click Browse... under Zip menu
Select the exported zip file
Click Import
I have a c# desktop app which connects to a site via a web browser control. The problem is I need to navigate to a specific section and download a excel file which is generated from a postback. I would like to either automate this process or bypass the file download dialog and save the file directly to a local drive.
Problem
The link is not a standard url. The site uses a postback script to get the file needed which then displays the file download dialog box. E.g. When you click on the button (javascript: postback) the file download dialog box is automatically loaded.
As stated I want to bypass the save options and automatically store the file in a predefined location. Any help would be much appreciated.
I find AutoIt http://www.autoitscript.com/site/autoit/ very useful for these kind of tasks. If you want to integrate it with your C# app, then you can call your AutoIt script via system calls. The difficulty is finding and following the link on the page, that will depend on how the page is laid out.
I am using the WebBrowser control to browse local files and folders, but the control seems to be designed primarily to browse the Web (as its name implies).
I need to be able to do common tasks, like using the "Up one level" button, or put the control in "File Search" mode, get the active item, etc.
Is there a way to do these things using this control?
Is there a comprehensive documentation somewhere to explain local browsing using the WebBrowser?
Thanks all.
Here is a good intro that should help you get started on this. Most of the work with this dialog will be done by the browser, you need only to prompt it how to open the dialog.
I think you may be confusing the WebBrowser control with Windows Explorer.
If you want to browse around your local file system, then you need to add an Open File Dialog to the form containing the Web Browser control, then have a button of some kind open that dialog to locate the file to load into the WebBrowser control.