Programs in containers won't launch from .desktop file

I don't think I've changed anything, but programs in containers now won't launch from their .desktop file. I can still run them from my shell. .desktop file:
[Desktop Entry]
Name=Visual Studio Code (container fedora)
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=blend enter -cn fedora -- /usr/share/code/code %F
Icon=./code.
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window (container fedora)
Name[de]=Neues leeres Fenster (container fedora)
Name[es]=Nueva ventana vacía (container fedora)
Name[fr]=Nouvelle fenêtre vide (container fedora)
Name[it]=Nuova finestra vuota (container fedora)
Name[ja]=新しい空のウィンドウ (container fedora)
Name[ko]=새 빈 창 (container fedora)
Name[ru]=Новое пустое окно (container fedora)
Name[zh_CN]=新建空窗口 (container fedora)
Name[zh_TW]=開新空視窗 (container fedora)
Exec=blend enter -cn fedora -- /usr/share/code/code --new-window %F
Icon=./code.
[Desktop Entry]
Name=Visual Studio Code (container fedora)
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=blend enter -cn fedora -- /usr/share/code/code %F
Icon=./code.
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window (container fedora)
Name[de]=Neues leeres Fenster (container fedora)
Name[es]=Nueva ventana vacía (container fedora)
Name[fr]=Nouvelle fenêtre vide (container fedora)
Name[it]=Nuova finestra vuota (container fedora)
Name[ja]=新しい空のウィンドウ (container fedora)
Name[ko]=새 빈 창 (container fedora)
Name[ru]=Новое пустое окно (container fedora)
Name[zh_CN]=新建空窗口 (container fedora)
Name[zh_TW]=開新空視窗 (container fedora)
Exec=blend enter -cn fedora -- /usr/share/code/code --new-window %F
Icon=./code.
Nothing is displayed when opening it via rofi, but opening the .desktop file with xdg-open displays the attached error message: ("Unable to connect to libvirt with URI: [none].")
No description
Solution:
@ム丂イ乇尺ノ丂ズ update: apparently updating fixed it
Jump to solution
13 Replies
🎄 Asterisk
🎄 Asterisk3mo ago
Remember vscode installs to /opt?
autumn (CIPG)
autumn (CIPG)OP3mo ago
this is in a fedora container
🎄 Asterisk
🎄 Asterisk3mo ago
🤔
autumn (CIPG)
autumn (CIPG)OP3mo ago
it works fine when opening it from the terminal
🎄 Asterisk
🎄 Asterisk3mo ago
Try changing the command to code.fedora Code. Whatever the name of the container is
autumn (CIPG)
autumn (CIPG)OP3mo ago
ope, sorry, had to go and forgot to check back in i tried that too, safe thing
🎄 Asterisk
🎄 Asterisk3mo ago
idk what libvirt has to do with this try removing the capital letters from StartupWMClass and idk why ./code. is the icon
autumn (CIPG)
autumn (CIPG)OP3mo ago
alright, i'll give it a try in a bit @ム丂イ乇尺ノ丂ズ alright, so apparently i'm a slight idiot xdg-open thinks it's something libvirt related opening it with gtk-launch works properly doing it via rofi fails and via rofi, code.fedora isn't in the PATH oh this might be related to another issue i forgot to report when running code, or anything in the container, in bash, i get this:
[askiiart@blend ~]$ code.fedora
Error: crun: error opening file `/run/user/10002/crun/c671e873577b7a5c08f1a24cd8a348e5eea99ed55b8465340bbc0aad0ace3c1d/status`: No such file or directory: OCI runtime attempted to invoke a command that was not found
[askiiart@blend ~]$ code.fedora
Error: crun: error opening file `/run/user/10002/crun/c671e873577b7a5c08f1a24cd8a348e5eea99ed55b8465340bbc0aad0ace3c1d/status`: No such file or directory: OCI runtime attempted to invoke a command that was not found
it works fine in fish, though
🎄 Asterisk
🎄 Asterisk3mo ago
That’s odd It is in your PATH though Wayland can use xdg-open?
autumn (CIPG)
autumn (CIPG)OP3mo ago
yeah afaik maybe something else is symlinked to it i know some xdg-open replacements do that i haven't looked yep, it's xdg-open (this also happens with user shell $container)
Solution
autumn (CIPG)
autumn (CIPG)3mo ago
@ム丂イ乇尺ノ丂ズ update: apparently updating fixed it
autumn (CIPG)
autumn (CIPG)OP3mo ago
i just don't update that often since it takes half an hour and makes it nigh unusable for a decent chunk of it since my chromebook is too weak to do it well lol i should probably run blendos on a different computer, for now at least
🎄 Asterisk
🎄 Asterisk3mo ago
cool
Want results from more Discord servers?
Add your server