forked from clan/clan-core
clan-vm-manager: Added URI xdg-mime installation into devshell
This commit is contained in:
parent
d7b1a9f959
commit
60bd3a3888
@ -61,7 +61,6 @@ python3.pkgs.buildPythonApplication {
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "clan-vm-manager";
|
||||
# TODO: this subcommand is not implemented yet
|
||||
exec = "clan-vm-manager join %u";
|
||||
desktopName = "CLan VM Manager";
|
||||
startupWMClass = "clan";
|
||||
|
@ -10,8 +10,15 @@ mkShell {
|
||||
shellHook = ''
|
||||
ln -sfT ${clan-cli.nixpkgs} ../clan-cli/clan_cli/nixpkgs
|
||||
|
||||
ln -sf ${clan-vm-manager} ./result
|
||||
# prepend clan-cli for development
|
||||
export PYTHONPATH=../clan-cli:$PYTHONPATH
|
||||
|
||||
set -euox
|
||||
# install desktop file
|
||||
cp -f ${clan-vm-manager}/share/applications/clan-vm-manager.desktop ~/.local/share/applications/clan-vm-manager.desktop
|
||||
sleep 2
|
||||
sed -i "s|Exec=.*|Exec=${clan-vm-manager}/bin/clan-vm-manager|" ~/.local/share/applications/clan-vm-manager.desktop
|
||||
xdg-mime default clan-vm-manager.desktop x-scheme-handler/clan
|
||||
set +x
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user