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:
@@ -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
@@ -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
@@ -252,7 +252,7 @@ void MainWindow::readSettings()
|
|||||||
QSettings settings;
|
QSettings settings;
|
||||||
if (settings.value("Main/SaveRestorePositions", false).toBool())
|
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());
|
move(settings.value("Main/WindowPos", QPoint(100, 100)).toPoint());
|
||||||
}
|
}
|
||||||
if (settings.value("Main/AutoScroll", false).toBool())
|
if (settings.value("Main/AutoScroll", false).toBool())
|
||||||
|
|||||||
Reference in New Issue
Block a user