Comments (12)
Hi Joel,
Glad I could help. Thanks for the report. I actually did not know the script created .desktop files to integrate with the menu. I created an issue on github to keep track of it:
I had a quick look at the section of the script that generates those desktop files:
https://github.com/meuter/argon-one-case-ubuntu-20.04/blob/master/argon1.sh#L530
And apparently, they run the script using lxterminal. Not sure why they picked that one in particular. But for portability, instead of using a specific terminal emulator (like mate-terminal in your case), I would suggest trying to use the default terminal provided by the desktop environment. I don't have my raspberry pie at hand at the moment (it's on loan at one of my colleagues) so I cannot test this, but I would try something like this: set the Terminal
variable to true and change the Exec
variable to execute the script directly. So for the config script, it would look like this:
echo "[Desktop Entry]" > $shortcutfile
echo "Name=Argon One Configuration" >> $shortcutfile
echo "Comment=Argon One Configuration" >> $shortcutfile
echo "Icon=/usr/share/pixmaps/ar1config.png" >> $shortcutfile
echo 'Exec=lxterminal -t "Argon One Configuration" --working-directory=/home/pi/ -e '$configscript >> $shortcutfile
echo "Type=Application" >> $shortcutfile
echo "Encoding=UTF-8" >> $shortcutfile
echo "Terminal=false" >> $shortcutfile
echo "Categories=None;" >> $shortcutfile
should be change to
echo "[Desktop Entry]" > $shortcutfile
echo "Name=Argon One Configuration" >> $shortcutfile
echo "Comment=Argon One Configuration" >> $shortcutfile
echo "Icon=/usr/share/pixmaps/ar1config.png" >> $shortcutfile
echo 'Exec='$configscript >> $shortcutfile
echo "Type=Application" >> $shortcutfile
echo "Encoding=UTF-8" >> $shortcutfile
echo "Terminal=true" >> $shortcutfile
echo "Categories=None;" >> $shortcutfile
And do a similar modification for the uninstall script. If you're willing to test this on your side, I can merge this change easily.
Thanks!
Kind regards
-Cédric
from argon-one-case-ubuntu-20.04.
from argon-one-case-ubuntu-20.04.
@joelw135 no worries, I'll take a look when I have my rpi4 back.
from argon-one-case-ubuntu-20.04.
from argon-one-case-ubuntu-20.04.
@joelw135 I just got my RPI4 back from my colleague. So I'll take care of this over the week-end.
from argon-one-case-ubuntu-20.04.
Thank you it is appreciated.
from argon-one-case-ubuntu-20.04.
Fixed in 3eda093
from argon-one-case-ubuntu-20.04.
Thank you so very much. I just ordered the M.2 case from them. And I am hoping I will still be able to boot from the SSD. Thanks again.
from argon-one-case-ubuntu-20.04.
I tried the script and it doesn't create the desktop icons. I have tried it using ssh and directly from terminal.
from argon-one-case-ubuntu-20.04.
That's rather strange. On my end, the two desktop shortcuts are created and they both work with the default terminal provided by the desktop environment as mentioned above. In order to investigate why it does not work on your side, could you try running the script using bash -ex argon1.sh
and send me the output? I'll see if I can spot the error on your side.
Regarding the icons, they are downloaded from argon40's website and copied to /usr/share/pixmaps/
by the script itself. The icons are then referenced in the two .desktop
file. Here's where one of the .destop
file is generated in the script:
argon-one-case-ubuntu-20.04/argon1.sh
Lines 541 to 561 in 3eda093
These two lines download the icons:
sudo wget http://download.argon40.com/ar1config.png -O /usr/share/pixmaps/ar1config.png
sudo wget http://download.argon40.com/ar1uninstall.png -O /usr/share/pixmaps/ar1uninstall.png
In a .desktop
file, the path to the icon is specified in Icon
variable:
Icon=/usr/share/pixmaps/ar1config.png
from argon-one-case-ubuntu-20.04.
from argon-one-case-ubuntu-20.04.
from argon-one-case-ubuntu-20.04.
Related Issues (11)
- Works great on Ubuntu Server 21.04
- constant temperature emitted by tempmon HOT 1
- 21.10: fanconfig and tempmon work, but power off does not.
- Very useful script, one request HOT 1
- Temp reading HOT 3
- zombie process is detected HOT 3
- Once installed fan keeps running forever even after poweroff HOT 3
- for 4B, also need "bus = smbus.SMBus(1)" HOT 2
- argononed.py crashed with FIleNotFoundError in __main__ HOT 5
- May modified and distributed your script for Home-Assistant HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argon-one-case-ubuntu-20.04.