Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files don't show up in KDE Neon #29

Open
yasharya2901 opened this issue Jan 15, 2021 · 2 comments
Open

Files don't show up in KDE Neon #29

yasharya2901 opened this issue Jan 15, 2021 · 2 comments

Comments

@yasharya2901
Copy link

When I tried to find the files by pressing the button, nothing showed up in any of of my folders. I even tried dragging and dropping but that also didn't worked. At the end, I typed the named of the file and hit entered and then it worked.

Distro: KDE Neon latest version

@zaganator
Copy link

just downloaded, I tried to start the application and the graphical interface works but when I try to add the file for compression the explorer window is completely empty.
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.15.0-52-generic
OS Type: 64-bit
Processors: 4 × Intel® Core ™ i5-3470 CPU @ 3.20GHz
Memory: 15.5 GiB

@Argentino84
Copy link

Argentino84 commented Jan 13, 2023

I have the same problem in FerenOS based on Ubuntu 20.04 with KDE. It is impossible to open any file. Even writing the name does not work.

I coded a shell script named "pdf-compress.sh" where I can drag and drop the files I want to compress. The output files are saved at the same path the original ones are, but at the end of the name "_compressed" is appended. Just drag and drop and press ENTER:

#!/bin/bash
printf "Enter the path of the PDF files: \n\n"
IFS= read -r file_list

IFS="'" read -ra files <<< "$file_list"

for ((i=0; i<${#files[@]}; i++)); do
file="${files[i]}"
if [ $(($i % 2)) -eq 0 ]; then
continue
fi
if [ ! -f "$file" ]; then
echo "File not found or not a regular file: $file"
continue
fi

path=$(dirname "$file")
filename=$(basename "$file")
extension="${filename##.}"
filename="${filename%.
}"
output="${path}/${filename}_compressed.${extension}"

LC_ALL=C.UTF-8 ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$output" "$file"
if [ $? -eq 0 ]; then
printf "\nFile $file has been compressed and saved as $output\n"
else
printf "\nAn error occurred while compressing the file $file\n"
fi
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants