Perforce visual client (P4v) shortcut icon not displaying - icons

I run the Perforce Windows client, P4V, on both my office computer and my laptop. On the office computer it displays a standard P4V icon (a silver 'V' in a red circle). On the laptop it displays a generic icon that looks like three colored blobs in a window.
On the laptop I tried to change the icon in the P4V shortcut's Properties dialog. When I clicked "Change Icon" I got an error box that said, "Windows can't find the file %USERPROFILE%\Documents\...\p4v_IDI_ICON1.ico." The pathname refers to a folder that I created to store notes. There's no reason why a Perforce icon should be in that folder. I'm mystified that Perforce is even aware of the folder, since it's not in any depot.
I looked for the named .ico file in my office computer's Perforce installation directory. It's not there.
What can I do to make the Perforce icon display correctly on the laptop?

You should be able to select the icon from the executable, which is likely at "C:\Program Files\Perforce\p4v.exe" (or %PROGRAMFILES%\Perforce\p4v.exe in the generic).
On my system the icon was assigned by the installer, and has a cryptic path into the Windows Installer folders, but, I am also able to use the icon from the exe above.

The P4V executable file on the laptop does not contain any icons at all -- that's the cause of the problem.
I did figure out a way to solve the problem, though:
On the office computer, open the P4V shortcut's Properties dialog.
Click Change Icon. The Change Icon lists one icon (the one I want).
"Look for icons in this file" gives the pathname of a weirdly named
EXE file in a directory named %systemroot%\Installer.
Email the weirdly named EXE file to myself as an attachment.
On the laptop, save the EXE file.
Open the P4V shortcut's Properties dialog. Click Change Icon. Enter
the pathname of the saved EXE file in "Look for icons in this file." The
dialog shows the icon I want.
Select the icon and close the dialog.
Now the right icon appears in the task bar when I start P4V. The wrong icon still appears in the Start menu, but I hope that that will correct itself the next time I reboot.

Related

How to change the default Open File... (folder) in Netbeans 8.2?

How can I change the default Open File... directory in Netbeans 8.2 for Java SE\ME\EE?
I've edited my projectui.properties file line projectsFolder=DIRECTORY but that only works for projects. I am trying to open individual files without opening the entire project.
File was found (Windows) under "C:\Users\MYNAME\AppData\Roaming\NetBeans\8.2\config\Preferences\org\netbeans\modules"
Unlike setting the default project directory in NetBeans, you can't modify the default Open File... directory because there is no such "default directory" to change.
NetBeans behavior when you select Open File... from the File menu (on Windows 10 at least) is as follows:
[1] On the first occasion within a NetBeans session the Documents icon will be pre-selected in the Open dialog window, and your Documents directory will be opened. That's just the way NetBeans works, and cannot be modified. Although you can change the Documents folder that will be opened, you probably shouldn't. See below for details**.
[2] Within the Open dialog you can obviously navigate to any alternative folder to open a file. Thereafter, within that NetBeans session only, that alternative folder will be opened by default on the subsequent File -> Open File... selections, until an alternative directory is selected.
~~~~~
** To change the Documents folder in Windows (which will also change the folder that NetBeans opens on the initial use of File -> Open File..):
In Windows File Explorer select Desktop -> This PC -> Documents and right-click.
Select Properties from the drop down menu, and then select the Location tab in the Document Properties window.
Enter the name of the new folder to be used as the Documents folder and click OK.
Restart NetBeans, select File-> Open File... and the folder NetBeans opens will now be the one you specified in the previous step.
That may appear to have the desired affect, but other Windows applications also use the Documents folder, and may depend on files in that folder, so it shouldn't really be changed without good reason. If you really need to open files in NetBeans that are not within any project the cleanest approach would be to place such files in the Documents folder if possible.
One solution would be to move the NetBeansProjects in the Documents folder mentioned above to the desired place and to place a permanent symlink to the desired folder. Instructions for latter referenced here https://superuser.com/questions/1020821/how-to-create-a-symbolic-link-on-windows-10
Watch out if the secondary location could be temporary (like a network drive) that it's always in place before you launch Netbeans.

How to open atom editor?

I'm new to atom (atom.io), I have downloaded it, and success installed it. But how to open this editor?
There is no shortcut in my desktop. And no atom icon on my start menu.
How to open this editor?
If you are using windows check:
C:\Users\<yourUserName>\AppData\Local\atom
Atom SETTINGS -> System: tab -> Checked two options:
- Show in file context menus
- Show in folder context menus
First go to this location
C:\Users\<YOURUSERNAME>\AppData\Local\atom
In my case YOURUSERNAME is hp. After going to that folder check the file name atom with atom symbol of type application.
Click on the link below to see the picture.
After that, right click that file and click the option create shortcut. Then move the shortcut to your Desktop.
Now you can access/open atom editor from your desktop.
ENJOY!
cd C:\Users\<YOURUSERNAME>\AppData\Local\atom
start atom.exe
Just copy this code to a notepad file and save it as Atom.bat on your desktop. I know it is a workaround, but hey, it works!
You can customize the icon too if you want by going to it's properties.
Please unhide "hidden files"
Find on this location [AppData is a hidden folder in windows10]
C:\Users<YOURUSERNAME>\AppData\Local\atom
It's in "GitHub, Inc" folder in start menu.
If there isn't, go to C:\Users\<YOURUSERNAME>\AppData\Local\atom or
C:\Users\<YOURUSERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc
If these do not work, reinstall it! and after it finished try to pin it on Taskbar.
You need to access the Atom app settings as described here: https://atom.io/packages/settings-view#:~:text=Usage,File%20%3E%20Settings%20(Windows).
"You can open the Settings View by navigating to Edit > Preferences (Linux), Atom > Preferences (macOS), or File > Settings (Windows)."
For windows computer: On the Atom app home screen click on File, then settings. You then scroll to System settings and select all the check boxes as shown in one of the images in the answers in this thread.
After completing these steps you will notice that if you right click on any of your files, and click "open with" Atom will be one of the options to open your file with. After opening Atom you can right click the icon on your task bar and click "pin to task bar" and use that as your shortcut.
Bizarrely, I actually just found it in
C:\Windows\SysWOW64\config\systemprofile\AppData\local\atom\atom.exe
It was installed by chocolatey; perhaps that affected the install location? On a different system chocolatey installed it in a more normal place.

Can I use a custom logo for downloaded url files?

My site has an option to download a shortcut (.url) file onto the user's PC by clicking a link. The idea is that users then can save this to their desktop, and use it a shortcut to the site for future visits. (I know it's wacky, but it's what my client wanted.)
I have an icon(.ico) file that I wish to use, but whenever the user downloads the file the icon is not shown.
I've tried opening the URL file in notepad and editing the IconFile value to point to the icon file on the server itself.
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://example.com/
IDList=
HotKey=0
IconFile=http://example.com/favicon.ico
IconIndex=0
However this does not seem to work. Can anyone suggest what might be wrong, or how I can fix it.
MS Windows does not load icon files specified with ´IconFile´ from the internet (for security reasons, I guess).
Rather it only loads the ´IconFile´ from
local file if the path is a file path, or
local web cache if the protocol is http:
You can verify this by navigating Internet Explorer to http://example.com/favicon.ico (now file is in cache) and then refreshing your *.url file (by right-clicking -> Edit -> [Make a fake change])
Now the icon should be displayed. Now clear your IE-cache, refresh *.url file, and the icon is gone (replaced by the icon of the default browser)
So,
either your client can tolerate that the default icon is displayed if icon is not cached, or
you have to provide a local copy.

How can I associate a certain file type again with "View file"

After installing a fresh Ubuntu (13.04) pem files (SSL certificates) are associated with "View file" (right click the file in Nautilus I see "Open with View file"), which nicely shows a clear text version of the certificate.
Now I wanted to edit the file and so chose "Open with another application" and selected gedit. It worked, but now I only see "Open with gedit" and cannot revert back to the "View file" program (or add it as another option). I also noticed many applications (for example Sublime, which is available in the Unity Lense) are missing in the dialog where I can choose which application to use for opening the file.
How can I get more (all that are "known" to unity, for example the lense) applications shown in the dialog where I can associate a file type with an application? Where can I find the "View file" application?
Look at the file:
~/.local/share/applications/mimeapps.list
That will contain something like (this example is for a *.crt file):
[Added Associations]
application/pkix-cert=gvim.desktop;
Remove the offending line. You don't need to restart anything for the change to take effect.

IExpress - create exe with custom icon

With the help of IExpress I created an exe from a bat file and would like to set a custom icon for the exe. Is this possible?
Regards
Try Resource Hacker. It worked here with a test IExpress installer.
Step-by-step instructions:
Create your IExpress package as normal.
Launch Resource Hacker, then open your IExpress-generated executable.
In the Action menu, choose Replace Icon …
Open the file that contains the icon you want to use, then click Replace.
Save the file in Resource Hacker. This will get you two files:
Your new file: package.exe
Your original file: package_original.exe
If the icon for package.exe looks wrong on your computer, this is expected behaviour due to the old icon being cached by Explorer. To clear the icon cache, you can execute:
ie4uinit.exe -show
(This will only be a problem on the computer that you used to edit the file; other computers should show the correct icon straight away.)
As a workaround you can create a shortcut of the exe file and then set a custom icon to it.

Resources