-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3504 from canonical/desktop-gui
GUI Improvements
- Loading branch information
Showing
53 changed files
with
1,842 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
#!/bin/sh | ||
|
||
export SNAP_REAL_HOME=$( getent passwd $USER | cut -d: -f6 ) | ||
|
||
# so that snapd finds autostart desktop files where it expects them (see https://snapcraft.io/docs/snap-format) | ||
link_autostart() | ||
{ | ||
if [ ! -z "$SNAP_USER_DATA" ] # ensure we're in a proper environment | ||
then | ||
mkdir -p $SNAP_USER_DATA/.config | ||
ln -sfnt $SNAP_USER_DATA/.config ../config/autostart | ||
else | ||
echo "WARNING: SNAP_USER_DATA empty" | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/sh | ||
|
||
. client-common.sh | ||
link_autostart | ||
|
||
exec "$SNAP/bin/multipass" "$@" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/client/gui/assets/com.canonical.multipass.gui.autostart.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>com.canonical.multipass.gui.autostart</string> | ||
|
||
<key>Program</key> | ||
<string>/Applications/Multipass.app/Contents/MacOS/Multipass</string> | ||
|
||
<key>KeepAlive</key> | ||
<dict> | ||
<key>SuccessfulExit</key> | ||
<false/> | ||
</dict> | ||
|
||
<key>RunAtLoad</key> | ||
<true/> | ||
|
||
<key>ThrottleInterval</key> | ||
<integer>0</integer> | ||
|
||
<key>ProcessType</key> | ||
<string>Interactive</string> | ||
</dict> | ||
</plist> |
3 changes: 2 additions & 1 deletion
3
data/multipass.gui.autostart.desktop → ...ui/assets/multipass.gui.autostart.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[Desktop Entry] | ||
Name=Multipass | ||
Exec=multipass.gui --autostarting | ||
Exec=multipass.gui | ||
Icon=multipass.gui | ||
Type=Application | ||
Terminal=false | ||
Categories=Utility; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.