Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-05-24 00:30:55

Doppleganger
Member
Registered: 2021-05-17
Posts: 12

SOLVED: Default Icon for Making A URL Shortcut on Desktop

I'm new to Xfce, and still trying to figure my way around.  I run Xfce4 on top of Arch, and every time I want to create a URL shortcut on the desktop, the icon will always, 100% of the time, default to the Location Icons/Folder icon.  I then have to navigate to either All Applications, or Application Icons, then select the Firefox icon for the shortcut.  This happens no matter if I create the shortcut manually via right-click, or if I drag the URL from the address bar of Firefox.  Not the end of the world, but the extra steps required to get what I would consider a default URL shortcut icon are just a little annoying to me.  There is already a www.<whatever> address location in the URL: text entry line in the Create Link dialog box, and my default system web application is set to Firefox, so it makes me wonder if I have missed a setting or something along the way?

Is there something I can do so that the default icon for a URL shortcut will be the Firefox icon, instead of a Folder icon?

TIA!

Last edited by Doppleganger (2021-05-24 04:36:03)

Offline

#2 2021-05-24 02:48:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

It is hard-coded to use the "user-bookmarks" icon. If you want to change this you have two options:

  1. Edit the source code and change "user-bookmarks" to "firefox"

  2. Replace all instances of your icon theme's "user-bookmarks" icon with a comparable "firefox" icon.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-05-24 03:44:23

Doppleganger
Member
Registered: 2021-05-17
Posts: 12

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

ToZ wrote:

It is hard-coded to use the "user-bookmarks" icon. If you want to change this you have two options:

  1. Edit the source code and change "user-bookmarks" to "firefox"

  2. Replace all instances of your icon theme's "user-bookmarks" icon with a comparable "firefox" icon.

Excellent, thank you!  And of course, one final question.... where do I place the edited main.c file when it's ready?  I've looked in /bin and /lib without finding a file that has this name.

Offline

#4 2021-05-24 04:01:37

Doppleganger
Member
Registered: 2021-05-17
Posts: 12

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

Nevermind, I get it now.  I need to edit the main.c file after cloning the project, and then compile exo and install it.   There is one thing I don't understand, however.   At what point will I need to do this process again?  I assume that sooner or later, something in the Xfce system will get updated, and I will once again have to clone the project, make the edit, compile the library, and re-install it.

What should I watch for as an indicator that I need to  do that again?  As always, thanks much for your help on this!!!

UPDATE:  The edit of main.c went excellent, and after install, the default icon is now the firefox icon.  I am VERY happy with this outcome, and I can't thank you enough for your help!  I swear, everywhere I read on this forum, and you seem to have the answer to most all questions that arise.  You are, indeed, a very knowledgeable person!!  Have you ever considered becoming a Mod?  :-)

Last edited by Doppleganger (2021-05-24 04:35:19)

Offline

#5 2021-05-24 11:27:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

Short answer: you will need to rebuild from source every time your distro updates the exo package.

Longer, more sustainable answer: depending on your distro, you should look at using a built-in process to supersede the repository exo package (e.g. in Arch - the AUR, in debian-based distros - custom package builds, etc).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2021-05-24 15:27:56

Doppleganger
Member
Registered: 2021-05-17
Posts: 12

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

I'll look into trying to find an Arch Linux 'built-in process'.  Thanks again!

Offline

#7 2021-05-24 15:37:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

For Archlinux, it would be AUR packages.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2021-05-24 17:13:01

Doppleganger
Member
Registered: 2021-05-17
Posts: 12

Re: SOLVED: Default Icon for Making A URL Shortcut on Desktop

ToZ wrote:

For Archlinux, it would be AUR packages.

At this point in my education, I believe the method above re: creating packages to be outside my wheelhouse.

My probable approach will most likely be to monitor my updates, and when I see one for exo, rather than doing the update thru pacman/yay/paru, I'll go the the github page, and do what I did last night.  While it's not the most optimal approach, it's the one that I'm capable of doing now that I have done it once.

But when I have more time to learn, I will review that link you just provided, and see if it's something I care to dive into!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 547.92 KiB (Peak: 548.77 KiB) ]