Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name of Desktop Icons #736

Open
mibokra opened this issue Feb 11, 2025 · 2 comments
Open

Name of Desktop Icons #736

mibokra opened this issue Feb 11, 2025 · 2 comments

Comments

@mibokra
Copy link

mibokra commented Feb 11, 2025

First of all, thanks for this great tool that made Pascal and Delphi - or at least the feeling of it - accessible to me again, since Kylix was a dead horse and Delphi never really left the Windows universe.

OK, this isn't really a problem or bug, but it's weird, at least for me.

When I install an instance of Lazarus with fpcupdeluxe, I name the installation path something like "~/pascal/ide/lazarus-40rc2" for Lazarus version 4, RC2.

Everything looks fine on my disk, I have the directory "~/pascal/ide/lazarus-40rc2" and everything works fine.

But the desktop link/icon/whatever and menu integration it's named Lazarus_lazarus-40rc2.

Lazarus_lazarus, that's a bit too much resurrection for me, but my "lazarus" in the directory name I want to keep to organize my files …

Is it possible to set the name for the icon/link/desktop/menu entry … independently of the specified directory name - i.e. to omit the leading "Lazarus_" or to give it a free name?

This happens both under Linux and Windows, by the way. So creating the icons is OK for the respective platform. Only the naming is - at least for me - not quite optimal.

Have I overlooked something in the configuration or is there a way to start somewhere in the source code?

To put it briefly: Is there a way to change the prefix "Lazarus_" to something else when creating the desktop icons, or to omit it completely so that you can freely choose the name of the desktop icon?

Thanks, Michael.

@LongDirtyAnimAlf
Copy link
Owner

The logic is this.

Shortcut names are (or can be) created for both FPC and Lazarus. To distinguish between them, a pre-amble is added to the base name that is the install directory.
However, fpcupdeluxe (default) only creates a shortcut for Lazarus, making the pre-amble a bit too much.

I am open for a suggestion from your side !

@mibokra
Copy link
Author

mibokra commented Feb 14, 2025

Thank you for your answer.

Let's assume that an input field is pre-filled with the predefined shortcut name. So if you don't change it, the predefined name is used, otherwise the text from the input field is used.

This means that it is the user's responsibility not to enter nonsense, but in my opinion that would not be a big problem, since Fpcupdeluxe itself says:

Fpcupdeluxe has created a shortcut link in your home-directory to start Lazarus.
Shortcut-link: Lazarus_trunk
Lazarus MUST be started with this link !!
Fpcupdeluxe has also (tried to) create a desktop shortcut with the same name.

This means that it is only trying to create a desktop icon (and a menu link), but it is also possible that this will go wrong. This does not have to affect the starter in the user's home directory. So if that creation doesn't work, it's no worse than before.

Maybe I'm wrong, but I think, this is not a big thing. I will try it myself, if it works, I send the code :)

Cheers, Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants