gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

Installer fails to place icon on desktop on non-english systems

Open danigonper99 opened this issue 2 years ago • 13 comments

I get an error while i'm using the installer. When it's about the 53% a error alert interrupts the process:

can't copy file "/usr/share/applications/GPT4AllChat.desktop" to "root/Desktop/GPT4AllChat.desktop": can't create "/root/Desktop/GPT4AllChat.desktop" for write.

I don't know how to fix it.

danigonper99 avatar Apr 14 '23 09:04 danigonper99

Hello, I got the same error on kubuntu 22.04 however i was able to use the UI and the CLI nonetheless so I guess it's not that big of a deal.

artybdrlt avatar Apr 14 '23 10:04 artybdrlt

Then i don't understand why mine dosen't work, i tried to open but nothing happens....

danigonper99 avatar Apr 14 '23 11:04 danigonper99

I got the same error. For me /root/Desktop doesn't exist. The real issue looked to be that I didn't have libxcb-cursor0. Running this fixed it:

sudo apt-get install libxcb-cursor0

I'm on Pop Os 22.04 @danigonper99

CmPons avatar Apr 14 '23 15:04 CmPons

I get an error while i'm using the installer. When it's about the 53% a error alert interrupts the process:

can't copy file "/usr/share/applications/GPT4AllChat.desktop" to "root/Desktop/GPT4AllChat.desktop": can't create "/root/Desktop/GPT4AllChat.desktop" for write.

I don't know how to fix it.

I have the same problem

vsalles1982 avatar Apr 14 '23 19:04 vsalles1982

@CmPons I actually have that package installed and updated and it's still not working, it doesn't run the application no matter if I launch it from the terminal or from the icon

danigonper99 avatar Apr 14 '23 20:04 danigonper99

I had the same problem when I put it in a non-default folder. When I put it in the default folder, the application was installed. However, another error occurs on startup - "There is no application installed for "shared library" files.

wedoslaw avatar Apr 21 '23 15:04 wedoslaw

I get an error while i'm using the installer. When it's about the 53% a error alert interrupts the process:

can't copy file "/usr/share/applications/GPT4AllChat.desktop" to "root/Desktop/GPT4AllChat.desktop": can't create "/root/Desktop/GPT4AllChat.desktop" for write.

I don't know how to fix it.

I had this error too. Seems its not a code issue.

  1. Download the .run file
  2. $ sudo chmod -x file-name.run
  3. $ ./path/to/file-name.run

If you run 3) as sudo you get the error because it is trying to create the files in the sudo home directory

karanravindra avatar May 16 '23 14:05 karanravindra

Hi, I have try without sudo and it doesnt'work either. In french i have this error at 91% of installation : " Une erreur s'est produite au cours de l'installation (gpt4all) : Impossible d'écrire l'entrée bureautique dans "/home/anonymous/Desktop/GPT4All.desktop". "

And i have click to ignore and i have success message.

hyover avatar May 16 '23 14:05 hyover

Same issue here: Bildschirmfoto vom 2023-06-05 15-35-30

michaelortnersanube avatar Jun 05 '23 13:06 michaelortnersanube

Seems that you have a non-English Ubuntu Environment (see your language settings). And accordingly, the installer cannot create "/home/XYZ/Desktop/GPT4AllChat.desktop" because there is no folder "/home/XYZ/Desktop" (it's called "Schreibtisch" or so, depending on your language).

You could change your language settings to English and/or rename the standard folders (Desktop), then it works. In my case, the desktop icon created didn't work out-of-the-box, but this is another issue.

Or simply invoke /home/XYZ/gpt4all/bin/chat and forget about your desktop...

erematanmw avatar Jun 21 '23 06:06 erematanmw

It looks like there are two cases:

  • people running the installer with root, which they shouldn't. Then it tries to access the root account's Desktop folder, which doesn't exist.
  • As you say, in certain non-English installations, the folder isn't named Desktop, but that name is hardcoded.
    • Another way to solve this would be to create a symlink which points Desktop to the desktop folder in your own language before running the installer.
    • See also: #873

cosmic-snow avatar Jun 21 '23 11:06 cosmic-snow

I have got the same error. I fixed it by creating a symbolic link on Bureau (because my environment is in french) ln -s Bureau Desktop

doumorchouor avatar Apr 16 '24 10:04 doumorchouor

I simply created a Desktop directory and after successful installation I moved the icon to my desktop folder

lyckety avatar Jul 06 '24 20:07 lyckety