Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Desktop entry isn't showing up #3

Closed
DaanKorver opened this issue May 1, 2022 · 9 comments
Closed

Desktop entry isn't showing up #3

DaanKorver opened this issue May 1, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@DaanKorver
Copy link

DaanKorver commented May 1, 2022

I tried to manually make a desktop entry just like the installer said but for some reason it just won't show up.

[Desktop Entry]
Name=Photoshop CC
Exec=cd "/home/daan/Downloads/Linux-PhotoshopCC-v22/PS-Prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021/" && WINEPREFIX="/home/daan/Downloads/Linux-PhotoshopCC-v22/PS-Prefix" wine photoshop.exe
Type=Application
Comment=Photoshop CC 2021
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
Icon=/home/daan/Downloads/Linux-PhotoshopCC-v22/.photoshop.png
StartupWMClass=photoshop.exe
MimeType=image/png;image/psd;image;
@albakhtari
Copy link
Owner

Hi @DaanKorver, what desktop environment are you using?
Also, does the command work when you run it from the terminal?

@DaanKorver
Copy link
Author

DaanKorver commented May 2, 2022

I am using GNOME on Pop_OS!. Starting PS using the command on the terminal does work.

Its just the desktop entry that doesn't show up in applications.

@albakhtari albakhtari pinned this issue May 2, 2022
@albakhtari
Copy link
Owner

Okay, I got the same problem on cinnamon.
Can you try changing the photoshop.desktop file's Exec=... command to:

./home/daan/Downloads/Linux-PhotoshopCC-v22/launcher.sh

I think this should fix it.

@DaanKorver
Copy link
Author

Still doesn't show up for me :/

@albakhtari
Copy link
Owner

After doing some reading, this should help. Add this line to the .desktop file:

NoDisplay=false

However, this problem can be of many reasons. So I'll make sure that we solve it so that I can edit the script so it works with all DEs

@albakhtari albakhtari added the bug Something isn't working label May 9, 2022
@MiMillieuh
Copy link

Try this in your exec :
bash -c 'cd "/home/daan/Downloads/Linux-PhotoshopCC-v22/PS-Prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021/" && WINEPREFIX="/home/daan/Downloads/Linux-PhotoshopCC-v22/PS-Prefix" wine photoshop.exe'$

I haven't checked modification on that fork so it might not work. but you can't add more than 1 command in a desktop entry so bash -c should do the trick

@albakhtari albakhtari self-assigned this May 22, 2022
@riquezjp
Copy link

riquezjp commented May 24, 2022

Using Manjaro Gnome42, none of the suggestions work so far.
Although the app icon does appear in apps using a single command in the .desktop as @MiMillieuh noted. But it doesn't launch PS.

5月 24 21:43:39 Sulaco systemd[1127]: Started Application launched by gnome-shell.
 5月 24 21:43:41 Sulaco photoshop.desktop[4534]: Application could not be started, or no application associated with the specified file.
 5月 24 21:43:41 Sulaco photoshop.desktop[4534]: ShellExecuteEx failed: File not found.

Exec=bash -c 'cd "/home/rico/Library/Linux-PhotoshopCC-v22/PS-Prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021/" && WINEPREFIX="/home/rico/Library/Linux-PhotoshopCC-v22/PS-Prefix" wine photoshop.exe'$

Running the 'cd &&' in a terminal DOES launch PS, but the bash -c gives file not found.

right-clicking a file & using 'open with' does work correctly :-)

@riquezjp
Copy link

riquezjp commented May 24, 2022

ok, now got it working!
a combination of the two solutions!

Exec=bash -c /home/rico/Library/Linux-PhotoshopCC-v22/launcher.sh

(also, a separate note about the desktop entry. there is a mimeType without sub-type 'image' should be 'image/jpeg' )

@albakhtari albakhtari removed their assignment May 27, 2022
@albakhtari
Copy link
Owner

Seems to be solved for most people, therefore I'll close the issue and implement the solution in the new repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants