Deskcut died :( Topic is solved

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Deskcut died :(

Post by xenergyx » 2026-07-20, 18:10

Can someone please fix it or provide me a string to add or change ? the install.rdf is already compliant.

Actual pm: v34.3.1 x64 on win11 x64.
[TEST]-deskCut-v0.6.0.3.1-signed.1-signed.xpi
You do not have the required permissions to view the files attached to this post.

User avatar
Kruppt
Moonbather
Moonbather
Posts: 68
Joined: 2018-07-23, 22:32

Re: Deskcut died :(

Post by Kruppt » 2026-07-20, 20:22

If this extension does what I think it does ... you don't need it.
(I think I remember using it waaayyyyy back)
Just drag the URL box icon to the desktop.

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-20, 20:32

if anyone could fix it or give me instructions to change something, i'd prefer that,
cause your method means opening a folder , selecting the desktop folder & dragging it to a folder,
or playing with the pm window size & readjust it.. & that's rather a crutch than a set & forget click..

User avatar
Kruppt
Moonbather
Moonbather
Posts: 68
Joined: 2018-07-23, 22:32

Re: Deskcut died :(

Post by Kruppt » 2026-07-20, 22:01

Ok, I follow what your saying, resizing the browser window to have access to desktop to drop the URL
would be a hassle. It's been so long ago that I used this extension, I can't remember much about it's use.
Sorry can't be more help.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3313
Joined: 2012-08-19, 20:32

Re: Deskcut died :(

Post by back2themoon » 2026-07-20, 22:30

I thought a forum member died. That's a relief, I guess.

User avatar
adoxa
Astronaut
Astronaut
Posts: 705
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Deskcut died :(

Post by adoxa » 2026-07-21, 02:36

Extract chrome/content/deskcut.js, replace nsILocalFile with nsIFile, put it back. Icons won't work, not sure it's worth the effort to save them locally (I did make the effort to get the favicon URL, but turns out shortcuts no longer support remote icons, anyway).

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-22, 02:27

Hi adoxa,

I don't know if a specific nsILocalFile must be replaced or all of them but i tried to replace them all in the deskcut.js file & reinstalled,
but nothing happened. when i right click on a webpage & try to create that shortcut in my desktop, 1: no sound. 2: no shortcut.

No result.
adoxa wrote:
2026-07-21, 02:36
Extract chrome/content/deskcut.js, replace nsILocalFile with nsIFile, put it back. Icons won't work, not sure it's worth the effort to save them locally (I did make the effort to get the favicon URL, but turns out shortcuts no longer support remote icons, anyway).

User avatar
tellu-white
Lunatic
Lunatic
Posts: 364
Joined: 2022-03-08, 22:02
Location: Arad, Romania

Re: Deskcut died :(

Post by tellu-white » 2026-07-22, 21:56

I've made a simple add-on that adds an entry to the context menu when you right-click a link, allowing you to create an “Internet Shortcut (.url)” on the Desktop in Windows.
This add-on copies an “Internet Shortcut (.url)” file belonging to the add-on to the Desktop (with a renamed filename), and then modifies its content (the URL).

I tested it on Windows 7 - 32-bit (my operating system).

Screenshots:
01.png
02.png
03.png
04.png
05.png

Download link ( Make Shortcut on Desktop to Web Page from Page URL 1.0 ):

https://www.mediafire.com/file/l9lgol06svn77z6/make_shortcut_on_desktop_to_web_page_from_page_url_1_0.zip/file
You do not have the required permissions to view the files attached to this post.
Telu (with a single L) was the name of the dog of one of my grandparents - when I was just a little boy.
He was a white dog of large size and very friendly.

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-22, 22:31

I'd be interested if you can update it to:

-no desktop name but the full url shown on address bar once shortcut's opened.
-no click warning that a shortcut was created "the ok" warning could be disabled.
-an audio warning in the settings with the full address to my local wav file that
would be played to notify me i just created the shortcut.

Otherwise, i'll be waiting for someone who can fix the actual DeskCut extension.

User avatar
adoxa
Astronaut
Astronaut
Posts: 705
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Deskcut died :(

Post by adoxa » 2026-07-23, 06:46

Here's an updated version that worked for me (Basilisk, Win10). Managed to get the icon working, storing it in an alternate data stream (note that since I fetch it, it may not work cross-origin). (Would another dev have a look at how I save the icon? It seems somewhat convoluted, surely there's a better way?)
You do not have the required permissions to view the files attached to this post.

Kris_88
Board Warrior
Board Warrior
Posts: 1198
Joined: 2021-01-26, 11:18

Re: Deskcut died :(

Post by Kris_88 » 2026-07-23, 09:37

adoxa wrote:
2026-07-23, 06:46
(note that since I fetch it, it may not work cross-origin)
Have you tried getFaviconDataForPage instead?

Also, some sites create favicons in SVG format. I don't know if Windows will understand an .ico file with SVG content...

By the way, it is possible to get the favicon URL from here: gBrowser.selectedTab.getAttribute("image");
And there's an onLinkIconAvailable event when this attribute is populated.
gBrowser.addProgressListener({ onLinkIconAvailable: function() { ... } });

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-23, 11:39

Hi Adoxa, confirmed not working in PM 34.4.1 x64.

See if Kris suggestion makes a change .. .
adoxa wrote:
2026-07-23, 06:46
Here's an updated version that worked for me (Basilisk, Win10). Managed to get the icon working, storing it in an alternate data stream (note that since I fetch it, it may not work cross-origin). (Would another dev have a look at how I save the icon? It seems somewhat convoluted, surely there's a better way?)

Kris_88
Board Warrior
Board Warrior
Posts: 1198
Joined: 2021-01-26, 11:18

Re: Deskcut died :(

Post by Kris_88 » 2026-07-23, 16:21

xenergyx wrote:
2026-07-23, 11:39
Hi Adoxa, confirmed not working in PM 34.4.1 x64.
It works, but there's a problem on first launch. You need to go to the add-on's settings ("DeskCut prefs" dialog), go to the Path tab, and click the Find and OK buttons. This initializes the "extensions.deskcut.deskPath" preference. After that, it works.

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-23, 18:53

Hi Kris,

it was already on the right path but i did what you asked without success.
i installed that new version over the previous one naturally..
i'll try the no other addons test, maybe i have an issue there,
& get back to you later.

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-23, 19:49

Hi Adoxa,

i was having a conflict with "image zoom" that i replaced with Bizarre for Pm.
Nevertheless, there's still a missing issue to fix in the addon.

The sound settings seem to be fine in DeskCut options, but it's not executed during shortcut creation :(

adoxa wrote:
2026-07-23, 06:46
Here's an updated version that worked for me (Basilisk, Win10). Managed to get the icon working, storing it in an alternate data stream (note that since I fetch it, it may not work cross-origin). (Would another dev have a look at how I save the icon? It seems somewhat convoluted, surely there's a better way?)

User avatar
adoxa
Astronaut
Astronaut
Posts: 705
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Deskcut died :(

Post by adoxa » 2026-07-24, 07:00

Kris_88 wrote:
2026-07-23, 09:37
Have you tried getFaviconDataForPage instead?
In my one test (the PM forum icon) that returns a PNG.
Also, some sites create favicons in SVG format. I don't know if Windows will understand an .ico file with SVG content...
If there's no icon, or it doesn't end in .ico it will now get /favicon.ico; if the response doesn't start with NUL there will be no icon (if it does start with NUL but it's not an icon you'll get the stock document icon rather than the browser icon).
It works, but there's a problem on first launch.
Turns out that was the original issue - the "test" version works fine once you do that. I've restored nsILocalFile and retrieve the desktop path by default.
xenergyx wrote:
2026-07-23, 19:49
The sound settings seem to be fine in DeskCut options, but it's not executed during shortcut creation
Oops, with the new way of getting the icon the "post-create" function wasn't called properly. Fixed.
You do not have the required permissions to view the files attached to this post.

User avatar
xenergyx
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2026-01-27, 14:09

Re: Deskcut died :(

Post by xenergyx » 2026-07-24, 09:27

You're a magician Adexa, thank you so very much, it's all fixed now, & thank you Kris ))
It now works like a charm, that would be awesome if you could make it a pale moon extension
by referencing it at https://addons.palemoon.org/extensions/ & keep it updated in case future Pm changes
affects the actual version. And thanks to all who have tried. :clap: :thumbup:

User avatar
tellu-white
Lunatic
Lunatic
Posts: 364
Joined: 2022-03-08, 22:02
Location: Arad, Romania

Re: Deskcut died :(

Post by tellu-white » 2026-07-24, 13:28

The "deskCut" add-on has been fixed, so xenergyx is happy with it.

However, if anyone would like to use the add-on I posted, I've made a new version in which I've added two features (in addition to the one that works by right-click on a link - see my previous post):

1. With a right-click on page in a neutral area ( not on a link ) and a click on the "Make Shortcut on Desktop to Web Page from Page URL" option in context menu that pops up, an "Internet Shortcut (.url)" file is created on Desktop for that same page.

2. With a click on the add-on's button, a pop-up dialog box opens where you can enter a URL for which you want to create an "Internet Shortcut (.url)" file on Desktop.

Screenshots:

1. With a right-click on page in a neutral area ( not on a link ):
01.png
02.png
03.png
2. With a click on the add-on's button:

a. With a URL to an accessible page:
04.png
05.png
06.png
07.png
b. With a URL to a page that is ( currently ? ) inaccessible:
08.png
09.png

Note: For inaccessible pages, it takes about 3 seconds for the pop-up with the message “The server is (currently?) inaccessible for URL ...” to show up.

**********

Download link ( Make Shortcut on Desktop to Web Page from Page URL 1.2 ):

https://www.mediafire.com/file/8icn0zyyzz74jfw/make_shortcut_on_desktop_to_web_page_from_page_url_1_2.zip/file
You do not have the required permissions to view the files attached to this post.
Telu (with a single L) was the name of the dog of one of my grandparents - when I was just a little boy.
He was a white dog of large size and very friendly.

User avatar
tellu-white
Lunatic
Lunatic
Posts: 364
Joined: 2022-03-08, 22:02
Location: Arad, Romania

Re: Deskcut died :(

Post by tellu-white » 2026-07-27, 14:57

A bugfix version that addresses an issue causing the add-on to ( sometimes ) create on Desktop two "Internet Shortcut" files ( within the same process ) with the same URL - but with different names ( different timestamp in their names ).

Download link ( Make Shortcut on Desktop to Web Page from Page URL 1.3 ):

https://www.mediafire.com/file/vhds542p5bgcmvv/make_shortcut_on_desktop_to_web_page_from_page_url_1_3.zip/file
Telu (with a single L) was the name of the dog of one of my grandparents - when I was just a little boy.
He was a white dog of large size and very friendly.