Xfce4 change internal name of launcher or let launcher show all items instead of a menu - xfce

When adding a launcher to a panel in Xfce4, the launcher is called just "launcher" in the panel items configuration with a flyout text like "Internal name: launcher-12". Neither is very helpful when there are several launchers in the panel.
Alternatively I could add many programs to one launcher, but then the launcher shows only the icon of one of the programs plus an indication in form of an arrow icon that there is a menu with more items.
Is there a way to (a) get an icon for each program to launch and (b) easily identify the launcher in the items configuration menu? I can see two ways:
a) The launcher shows all items and I use just one launcher for all of them.
b) The launcher's internal name can be set.
I cannot find either way with Xfce 4.10. Am I missing something?

you 'll have to add multiple launchers for each item

Related

Intellij PyCharm/Idea/etc: how to add a toolbar button that runs a shell script?

In Intellij IDE's such as PyCharm or Idea there is an option to customize the menu and toolbar by right-clicking the toolbar and picking Customize menus and toolbars. While it is possible to select almost any IDE action there doesn't seem to be a way to add a button that runs a custom shell script. The only way to run a shell script seems to be by adding a Run Configuration of type Shell Script and then invoking it via the Run button, but is there a way to have multiple clickable buttons on the toolbar that would run arbitrary shell commands? (no need for an actual console)
In Jetbrains jargon this is called an external tool and is configured under Preferences -> Tools -> External Tools.
Once you added the commands you need as external tools you can add them as toolbar buttons by right-clicking the toolbar and picking Customize menus and toolbars, expand the node under the Main Toolbar, click ➕ to add an item and then type external in the search box to select your "external tools" and optionally set custom icons for them.

Change Icon Index of shortcut during installation

I'm working with InstallShield 2013 Professional, Basic MSI Project.
My installation package contains exe file - myfile.exe. I added shortcut for it in Shortcuts view specifying myfile.exe as Icon File, and 0 as Icon Index. The destination place for this shortcut is a Desktop on a target box.
Suppose, my executable contains 3 icon resources and I want to change icon dynamically during Installation. To be more clear what I want to do: I have 3 radio buttons on one of Installation Dialogs and I want to apply icon to myfile.exe shortcut depending on radio button that was checked (1-st radio button->1-st icon, 2-nd radio button->2-nd icon, 3-rd radio button->3-rd icon).
How can I get this behavior? In other words, how can I change icon index of Icon File during installation?
This is kind of a complicated request. An easier way of achieving this would be to compile the EXE three times with different names and different icon 0 resources and then use mutually exclusive component conditions to control which one gets installed.
It gets trickier if that's not an option. The Shortcut Table defines the IconIndex column as an integer and is not formattable. This means you can't say [ICONINDEX] in the field and let it resolve at install time.
So what can you do? You can use a custom action to dynamically emit table data into temp tables during the install. An example using C# can be found here at: Dynamic Windows Installer UI
Realize that if someone creates a shortcut by hand they are likely to pick the "wrong" icon.

Using edit menu commands from menu bar app

I have an app which is run from the menu bar only (LSUIElement is set in the info.plist) which means there is no main menu except the menu I attached to the status item. The problem is I would like to enable some edit commands when using an NSTextView (like command-c to copy) but all command keys seem to be disabled since the app is technically not active (I get beeps when trying any key combinations).
Is there anyway to add a standard edit menu somewhere and enable command keys that would redirect to it? I'm thinking there could be a hack to make the app temporarily active or something but I can't figure anything out.
Thanks.
They're not disabled. They're gone, because you deleted them.
You need to put back your Main Menu.
If you use version control, you may be able to resurrect it from the past using that. If not, you'll have to create a new project, copy anything custom from your Main Menu nib (if you even still have one) into that one, and move that nib into your actual project to be your new Main Menu nib.
The Edit menu commands, window-related commands (e.g., Close), and numerous other commands all live in the Main Menu. If you delete the Main Menu, you don't have those features anymore.
Your Main Menu isn't visible in a UI element app, but that's not a reason to delete it—it's a reason to keep it, even though your app won't have the menu bar, because not being visible means that it won't peek out from behind the curtain but will remain there keeping the magic of your keyboard shortcuts working.

How can I add a custom command to Visual Studio?

There's an external command I'm using constantly - basically launching a batch file. I'd like to put a toolbar button (and possibly keyboard shortcut) for this into the IDE. Is there an easy way to do that?
First, add an item to your Tools menu by choosing Tools, External Tools, and filling out the dialog, like this:
Then bring up Tools Customize, click the Keyboard button at the bottom, and find the appropriate external tool number:
All the configured external commands in VS are available to add to a Toolbar or Menu through the Tools>Customize menu as "External Command ##". You just need to know which number corresponds to the particular command you've configured. I believe it is in order of entry in the external commands list.
Similarly, you can find those names in the commands list in Options>Environment>Keyboard and assign a shortcut to your command that way.

Adding item to the Desktop context menu in Windows

I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop).
Something like Catalyst Control Center in this screenshot:
I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry.
So, how can I add a new item into the Desktop menu and how can I associate some code with it?
I think the solution is language independent, if it's not, I'd appreciate any code that helps.
Such a handler must be registered in HKCR\Directory\Background, instead of usual locations like HKCR\Directory, HKCR\Folder, etc.
Check out Creating Shell Extension Handlers in MSDN.
There's a series of articles on CodeProject that details writing Shell Extensions and is very good:
http://www.codeproject.com/KB/shell/shellextguide1.aspx

Resources