Added an "installer" for Linux that creates desktop and application

entries for SavvyCAN, increased the size of the main window a bit.
This commit is contained in:
Collin Kidder
2015-07-19 11:12:56 -04:00
parent f07928425d
commit 90b0c6ae06
3 changed files with 29 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=SavvyCAN
GenericName=CANBus reverse engineering tool
Comment=Facilitates reverse engineering of canbus captures
Exec=FULLPATH/SavvyCAN
Icon=FULLPATH/icon/SavvyIcon.png
Terminal=false
Categories=Development;Electronics;IDE;
MimeType=text/x-application
Keywords=embedded electronics;electronics;canbus;reverse engineering;
Name[en_US]=SavvyCAN
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
CURDIR=`pwd`
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
cd "$APPDIR"
# Set absolute path work around
sed -e "s,FULLPATH,$PWD,g" SavvyCAN.desktop > SavvyCAN.desktop.temp
cp SavvyCAN.desktop.temp ~/.local/share/applications/SavvyCAN.desktop
cp SavvyCAN.desktop.temp ~/Desktop/SavvyCAN.desktop
rm SavvyCAN.desktop.temp
echo "Installed SavvyCAN icons on menu and desktop !"
+1 -1
View File
@@ -252,7 +252,7 @@ void MainWindow::readSettings()
QSettings settings;
if (settings.value("Main/SaveRestorePositions", false).toBool())
{
resize(settings.value("Main/WindowSize", QSize(800, 682)).toSize());
resize(settings.value("Main/WindowSize", QSize(800, 750)).toSize());
move(settings.value("Main/WindowPos", QPoint(100, 100)).toPoint());
}
if (settings.value("Main/AutoScroll", false).toBool())